Skip to content

Commit

Permalink
Testing minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Git committed Nov 6, 2023
1 parent 1a116a1 commit ef0fc4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions certificate/getCertificateChain.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def getCertificate(
# Create the SSL context.
# We will ignore any certificate warnings for this process.
sslContext = ssl._create_unverified_context()
sslContext.options &= ~ssl.OP_NO_RENEGOTIATION

with socket.create_connection((__hostname, __port)) as sock, sslContext.wrap_socket(sock, server_hostname=__hostname) as sslSocket:
# Get the certificate from the connection, convert it to PEM format.
Expand Down

0 comments on commit ef0fc4a

Please sign in to comment.