diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-11-09 20:21:19 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-11-09 20:21:19 (GMT) |
commit | fb0469112f2e027833a1dc7ff4c678417de0111a (patch) | |
tree | ac086511b8885cf056a2bdc453087a731f9d82c9 /Doc | |
parent | 859c4ef0a0069a555057f25f02407e89bd2c114b (diff) | |
download | cpython-fb0469112f2e027833a1dc7ff4c678417de0111a.zip cpython-fb0469112f2e027833a1dc7ff4c678417de0111a.tar.gz cpython-fb0469112f2e027833a1dc7ff4c678417de0111a.tar.bz2 |
Issue #10022: The dictionary returned by the `getpeercert()` method
of SSL sockets now has additional items such as `issuer` and `notBefore`.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/ssl.rst | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index 57a17bc..39d1cfe 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -433,11 +433,9 @@ They also have the following additional methods and attributes: certificate was not validated, the dict is empty. If the certificate was validated, it returns a dict with the keys ``subject`` (the principal for which the certificate was issued), and ``notAfter`` (the time after which the - certificate should not be trusted). The certificate was already validated, - so the ``notBefore`` and ``issuer`` fields are not returned. If a - certificate contains an instance of the *Subject Alternative Name* extension - (see :rfc:`3280`), there will also be a ``subjectAltName`` key in the - dictionary. + certificate should not be trusted). If a certificate contains an instance + of the *Subject Alternative Name* extension (see :rfc:`3280`), there will + also be a ``subjectAltName`` key in the dictionary. The "subject" field is a tuple containing the sequence of relative distinguished names (RDNs) given in the certificate's data structure for the @@ -459,6 +457,10 @@ They also have the following additional methods and attributes: been validated, but if :const:`CERT_NONE` was used to establish the connection, the certificate, if present, will not have been validated. + .. versionchanged:: 3.2 + The returned dictionary includes additional items such as ``issuer`` + and ``notBefore``. + .. method:: SSLSocket.cipher() Returns a three-value tuple containing the name of the cipher being used, the |