You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SSLSocket.getpeercert(): OCSP and CRL DP URIs #62579
Do you have to put those certs in capath? Things would probably be simpler if you didn't have to trigger capath loading using an actual SSL connection.
Also, please a versionadded tag in the doc entry.
It's just one certificate. The hash format of OpenSSL has changed over the years so we have to duplicate all certificates. But I don't need the extra stuff. I figured out that the Nokia test certificate has all new fields.
My initial patch has a versionchanged doc update. Did you have too much French wine again? *scnr* :)
Activity
tiran commentedon Jul 6, 2013
The patch implements OCSP and CRL distribution point access for getpeercert(). I'll add tests and doc updates later.
Output for https://info.pca.dfn.de/
{'OCSP': ('http://ocsp.pca.dfn.de/OCSP-Server/OCSP',),
'crlDistributionPoints': ('http://cdp1.pca.dfn.de/global-services-ca/pub/crl/cacrl.crl',
'http://cdp2.pca.dfn.de/global-services-ca/pub/crl/cacrl.crl'),
'issuer': ((('countryName', 'DE'),),
(('organizationName', 'DFN-Verein'),),
(('organizationalUnitName', 'DFN-PKI'),),
(('commonName', 'DFN-Verein CA Services'),)),
'notAfter': 'Oct 18 09:07:09 2014 GMT',
'notBefore': 'Oct 19 09:07:09 2009 GMT',
'serialNumber': '0EFBA9CC',
'subject': ((('countryName', 'DE'),),
(('organizationName', 'DFN-Verein'),),
(('organizationalUnitName', 'DFN-PKI'),),
(('commonName', 'info.pca.dfn.de'),)),
'version': 3}
tiran commentedon Jul 6, 2013
Updated patch with test, doc updates and a third field. I have added CDP and two AIA URIs: crlDistributionPoints, caIssuers and OCSP
pitrou commentedon Jul 18, 2013
Do you have to put those certs in capath? Things would probably be simpler if you didn't have to trigger capath loading using an actual SSL connection.
Also, please a versionadded tag in the doc entry.
tiran commentedon Jul 18, 2013
It's just one certificate. The hash format of OpenSSL has changed over the years so we have to duplicate all certificates. But I don't need the extra stuff. I figured out that the Nokia test certificate has all new fields.
My initial patch has a versionchanged doc update. Did you have too much French wine again? *scnr* :)
pitrou commentedon Jul 18, 2013
Indeed, it's just the decision to use capath that I'm arguing with.
Not *too much*, no ;-)
tiran commentedon Nov 17, 2013
Are you satisfied with my patch? I'd like to commit it before beta 1
python-dev commentedon Nov 21, 2013
New changeset 468d18bffdea by Christian Heimes in branch 'default':
Issue bpo-18379: SSLSocket.getpeercert() returns CA issuer AIA fields, OCSP
http://hg.python.org/cpython/rev/468d18bffdea
tiran commentedon Nov 21, 2013
memo to me: update whatsnew
python-dev commentedon Nov 21, 2013
New changeset 40bfddda43d4 by Christian Heimes in branch 'default':
Issue bpo-19682: Fix compatibility issue with old version of OpenSSL that
http://hg.python.org/cpython/rev/40bfddda43d4
python-dev commentedon Mar 9, 2014
New changeset 7885876b6503 by R David Murray in branch 'default':
whatsnew: SSLSocket.getpeercert new values returned. (bpo-18379)
http://hg.python.org/cpython/rev/7885876b6503