aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2015-07-31 23:33:35 -0500
committerIan Cordasco <graffatcolmingov@gmail.com>2015-07-31 23:37:42 -0500
commitc5e1c254ba4bc9bb94e8ddcc66f4dc8eb62ce218 (patch)
tree73c2e7c6378fbf176d13b6db1f8a2088db9b9965 /docs
parent8690effbb812f944ea4d730e73dc60e9d77dae17 (diff)
downloadcryptography-c5e1c254ba4bc9bb94e8ddcc66f4dc8eb62ce218.tar.gz
cryptography-c5e1c254ba4bc9bb94e8ddcc66f4dc8eb62ce218.tar.bz2
cryptography-c5e1c254ba4bc9bb94e8ddcc66f4dc8eb62ce218.zip
Document other two parameters from sign method
- Remove incorrect CertificateBuilder doc-string - Check that serial numbers are non-negative and < 160 bits - Check that dates passed aren't earlier than the unix epoch - Remove version from CertificateBuilder.__init__ and version method
Diffstat (limited to 'docs')
-rw-r--r--docs/x509/reference.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/x509/reference.rst b/docs/x509/reference.rst
index 5a809847..b7fef940 100644
--- a/docs/x509/reference.rst
+++ b/docs/x509/reference.rst
@@ -455,6 +455,17 @@ X.509 Certificate Builder
Sign the certificate using the CA's private key.
+ :param backend: Backend that will be used to build the certificate.
+ Must support the
+ :class:`~cryptography.hazmat.backends.interfaces.X509Backend`
+ interface.
+
+ :param private_key: The
+ :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey`,
+ :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKey` or
+ :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKey`
+ that will be used to sign the certificate.
+
:param algorithm: The
:class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm` that
will be used to generate the signature.