Skip to content

Commit 32262dc

Browse files
authored
[lightapi/python] fix: disable RFC5280 validation
problem: RFC5280 validation is enabled by default in Python 3.13 which causes cert validation failure. solution: disable RFC5280 validation since our certs are X509 compliant and RFC5280 is not needed.
1 parent 96f34e0 commit 32262dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightapi/python/symbollightapi/connector/SymbolPeerConnector.py

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def __init__(self, host, port, certificate_directory):
2727
self.node_public_key = None
2828

2929
self.ssl_context = ssl.create_default_context()
30+
self.ssl_context.verify_flags &= ~ssl.VERIFY_X509_STRICT
3031
self.ssl_context.check_hostname = False
3132
self.ssl_context.load_cert_chain(
3233
certificate_directory / 'node.full.crt.pem',

0 commit comments

Comments
 (0)