Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #54451

python 2.7 SSL to fetch servers notAfter date

Newsgroups comp.lang.python
Date 2013-09-19 15:12 -0700
Message-ID <87a4bfdc-bfe9-413e-b735-a17d8f48db7e@googlegroups.com> (permalink)
Subject python 2.7 SSL to fetch servers notAfter date
From Bryan Irvine <sparctacus@gmail.com>

Show all headers | View raw


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 to use 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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

python 2.7 SSL to fetch servers notAfter date Bryan  Irvine <sparctacus@gmail.com> - 2013-09-19 15:12 -0700

csiph-web