python 2.7 SSL to fetch servers notAfter date

B

Bryan Irvine

I'm trying to connect to an SSL application using client certs to grab the remote certs notAfter time. When I connect using 'openssl s_client' and pass my client cert/key I can see it in the cert chain, but when I attempt touse get_peer_certificate() in python (2.7) I only get a blank dict and cannot pull the notAfter date.

I think this means that Python is unable to validate the cert, but I'm not sure the next steps to fix it.

-B
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,807
Latest member
ryef

Latest Threads

Top