aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-03-30 15:05:59 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-03-30 17:55:39 -0500
commit1effb6e11ef4248c65b37a97dfe9dd0c2710882e (patch)
treed549a53d61b314f9b024c9a76e9f2803802b35ef /docs
parentd10e1ab8bb4630eb8e0902b37e9e4ea2013bd349 (diff)
downloadcryptography-1effb6e11ef4248c65b37a97dfe9dd0c2710882e.tar.gz
cryptography-1effb6e11ef4248c65b37a97dfe9dd0c2710882e.tar.bz2
cryptography-1effb6e11ef4248c65b37a97dfe9dd0c2710882e.zip
add load_der_x509_csr to support loading DER encoded CSRs
Diffstat (limited to 'docs')
-rw-r--r--docs/x509.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/x509.rst b/docs/x509.rst
index 22b282ce..dbfb441b 100644
--- a/docs/x509.rst
+++ b/docs/x509.rst
@@ -118,6 +118,22 @@ Loading Certificate Signing Requests
:returns: An instance of
:class:`~cryptography.x509.CertificateSigningRequest`.
+.. function:: load_der_x509_csr(data, backend)
+
+ .. versionadded:: 0.9
+
+ Deserialize a certificate signing request (CSR) from DER encoded data. DER
+ is a binary format and is not commonly used with CSRs.
+
+ :param bytes data: The DER encoded request data.
+
+ :param backend: A backend supporting the
+ :class:`~cryptography.hazmat.backends.interfaces.X509Backend`
+ interface.
+
+ :returns: An instance of
+ :class:`~cryptography.x509.CertificateSigningRequest`.
+
.. doctest::
>>> from cryptography import x509