diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-08-08 12:57:48 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-08-08 12:57:48 -0400 |
commit | d5bf17ad99939920aa73e6d00a36818ecaf1c2cc (patch) | |
tree | d61e4033c163d5d0539122098d5422b8e568dd04 /docs/x509 | |
parent | c9ee947f528269ea7a907a592219a788edf1a279 (diff) | |
parent | a39e3d165bfc3e4dd94a80d8ff17af356113d918 (diff) | |
download | cryptography-d5bf17ad99939920aa73e6d00a36818ecaf1c2cc.tar.gz cryptography-d5bf17ad99939920aa73e6d00a36818ecaf1c2cc.tar.bz2 cryptography-d5bf17ad99939920aa73e6d00a36818ecaf1c2cc.zip |
Merge pull request #2204 from reaperhulk/ski-classmethod
SubjectKeyIdentifier classmethod
Diffstat (limited to 'docs/x509')
-rw-r--r-- | docs/x509/reference.rst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/x509/reference.rst b/docs/x509/reference.rst index baf8b1e5..dfa91fac 100644 --- a/docs/x509/reference.rst +++ b/docs/x509/reference.rst @@ -1181,6 +1181,23 @@ X.509 Extensions The binary value of the identifier. + .. classmethod:: from_public_key(public_key) + + .. versionadded:: 1.0 + + Creates a new SubjectKeyIdentifier instance using the public key + provided to generate the appropriate digest. This should be the public + key that is in the certificate. The generated digest is the SHA1 hash + of the ``subjectPublicKey`` ASN.1 bit string. This is the first + recommendation in :rfc:`5280` section 4.2.1.2. + + :param public_key: One of + :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey` + , + :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKey` + , or + :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKey`. + .. class:: SubjectAlternativeName .. versionadded:: 0.9 |