aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-05-18 21:39:59 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2015-05-18 21:39:59 -0400
commit9acecaee3b564f8e97cbbe8858b96449b17e4551 (patch)
tree41c017254d783191055447a1fc26a13445a95dc2 /docs
parent5f1f65cfbe9938c1ea1df4aec013bf47e67994e6 (diff)
parentacb18976be0b7d23f63ab4242801eb8d8b11cba2 (diff)
downloadcryptography-9acecaee3b564f8e97cbbe8858b96449b17e4551.tar.gz
cryptography-9acecaee3b564f8e97cbbe8858b96449b17e4551.tar.bz2
cryptography-9acecaee3b564f8e97cbbe8858b96449b17e4551.zip
Merge pull request #1963 from AndreLouisCaron/csr-encoding
Adds support for writing CSRs.
Diffstat (limited to 'docs')
-rw-r--r--docs/x509.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/x509.rst b/docs/x509.rst
index 3f1af86c..c8505a87 100644
--- a/docs/x509.rst
+++ b/docs/x509.rst
@@ -366,6 +366,17 @@ X.509 CSR (Certificate Signing Request) Object
>>> isinstance(csr.signature_hash_algorithm, hashes.SHA1)
True
+ .. method:: public_bytes(encoding)
+
+ :param encoding: The
+ :class:`~cryptography.hazmat.primitives.serialization.Encoding`
+ that will be used to serialize the certificate request.
+
+ :return bytes: The data that can be written to a file or sent
+ over the network to be signed by the certificate
+ authority.
+
+
.. class:: Name
.. versionadded:: 0.8