Relative Content

Tag Archive for pythoncryptographyx509python-cryptography

Failure verifying a X.509 Certificate although its not been tampered

I am doing an assignment where I have a CA (server) and a client that requests a certificate from the CA, this function works. The certificate is sent via tcp as bytes. The idea is that clients will share a session key, but before they do they need to verify each others certificates. I do not have two clients set up so I decided to verify the clients own certificate using the function I created, yet it somehow says the certificate is invalid even though I am verifying a certificate I just got from the CA: