Commit fb6e6117 authored by Alexander Schrode's avatar Alexander Schrode Committed by oroulet

handle server certificate is none

parent caa898c4
......@@ -468,6 +468,8 @@ class Client:
data = self.security_policy.host_certificate + nonce
self.security_policy.asymmetric_cryptography.verify(data, response.ServerSignature.Signature)
self._server_nonce = response.ServerNonce
server_certificate = None
if response.ServerCertificate is not None:
# If a server has certificate chain, the certificates are chained
# this generates a error in our crypto part, so we strip everything after
# the server cert. To do this we read byte 2:4 and get the length - 4
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment