diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/x509/reference.rst | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/docs/x509/reference.rst b/docs/x509/reference.rst index 35c00e61..b2192c4e 100644 --- a/docs/x509/reference.rst +++ b/docs/x509/reference.rst @@ -546,11 +546,7 @@ X.509 Certificate Builder ... key_size=2048, ... backend=default_backend() ... ) - >>> public_key = rsa.generate_private_key( - ... public_exponent=65537, - ... key_size=2048, - ... backend=default_backend() - ... ).public_key() + >>> public_key = private_key.public_key() >>> builder = x509.CertificateBuilder() >>> builder = builder.subject_name(x509.Name([ ... x509.NameAttribute(NameOID.COMMON_NAME, u'cryptography.io'), @@ -734,6 +730,25 @@ X.509 CSR (Certificate Signing Request) Object over the network to be signed by the certificate authority. + .. attribute:: signature + + .. versionadded:: 1.2 + + :type: bytes + + The bytes of the certificate signing request's signature. + + .. attribute:: tbs_certrequest_bytes + + .. versionadded:: 1.2 + + :type: bytes + + The DER encoded bytes payload (as defined by :rfc:`2986`) that is + hashed and then signed by the private key (corresponding to the public + key embedded in the CSR). This data may be used to validate the CSR + signature. + X.509 Revoked Certificate Object ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |