diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-08-03 17:53:14 +0100 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-08-03 17:53:14 +0100 |
commit | 9add80e455fc3f8cd160035c4c2d1ce05a50cdea (patch) | |
tree | e63fbc548bd14e9c57d4b776d4ae380d9b309db1 /docs/x509/reference.rst | |
parent | b69aa4cdacb6e85845f590e528f7e9a471d7dd36 (diff) | |
download | cryptography-9add80e455fc3f8cd160035c4c2d1ce05a50cdea.tar.gz cryptography-9add80e455fc3f8cd160035c4c2d1ce05a50cdea.tar.bz2 cryptography-9add80e455fc3f8cd160035c4c2d1ce05a50cdea.zip |
reorder CertificateBuilder sign arguments
Diffstat (limited to 'docs/x509/reference.rst')
-rw-r--r-- | docs/x509/reference.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/x509/reference.rst b/docs/x509/reference.rst index 799126b9..61971fed 100644 --- a/docs/x509/reference.rst +++ b/docs/x509/reference.rst @@ -502,15 +502,10 @@ X.509 Certificate Builder :param critical: Set to ``True`` if the extension must be understood and handled by whoever reads the certificate. - .. method:: sign(backend, private_key, algorithm) + .. method:: sign(private_key, algorithm, backend) 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 @@ -521,6 +516,11 @@ X.509 Certificate Builder :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm` that will be used to generate the signature. + :param backend: Backend that will be used to build the certificate. + Must support the + :class:`~cryptography.hazmat.backends.interfaces.X509Backend` + interface. + X.509 CSR (Certificate Signing Request) Object ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |