diff options
author | Cory Benfield <lukasaoz@gmail.com> | 2015-12-07 15:25:12 +0000 |
---|---|---|
committer | Cory Benfield <lukasaoz@gmail.com> | 2015-12-07 15:25:12 +0000 |
commit | c47b252ae08281f3584b28772581c2f2759ce427 (patch) | |
tree | fa360ec34f206a6c3086823b39e0618a4be6155d | |
parent | 69d3cadf8e8d6eb115cf0a1d85ccf686c0c2a833 (diff) | |
download | cryptography-c47b252ae08281f3584b28772581c2f2759ce427.tar.gz cryptography-c47b252ae08281f3584b28772581c2f2759ce427.tar.bz2 cryptography-c47b252ae08281f3584b28772581c2f2759ce427.zip |
Have CertificateBuilder docs create self-signed cert
-rw-r--r-- | docs/x509/reference.rst | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/docs/x509/reference.rst b/docs/x509/reference.rst index 0fea6167..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'), |