aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/x509.rst8
1 files changed, 2 insertions, 6 deletions
diff --git a/docs/x509.rst b/docs/x509.rst
index 0f55e8e4..aa8e2593 100644
--- a/docs/x509.rst
+++ b/docs/x509.rst
@@ -491,18 +491,14 @@ X.509 CSR (Certificate Signing Request) Builder Object
... x509.NameAttribute(x509.OID_COMMON_NAME, 'cryptography.io'),
... ]))
>>> buidlder = builder.add_extension(
- ... x509.BasicConstraints(False, None), critical=True,
+ ... x509.BasicConstraints(ca=False, path_length=None), critical=True,
... )
>>> request = builder.sign(
- ... default_backend(), private_key, hashes.SHA1()
+ ... default_backend(), private_key, hashes.SHA256()
... )
>>> isinstance(request, x509.CertificateSigningRequest)
True
- .. method:: __init__()
-
- Creates an empty certificate signing request.
-
.. method:: subject_name(name)
:param name: The :class:`~cryptography.x509.Name` of the certificate