From 1effb6e11ef4248c65b37a97dfe9dd0c2710882e Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 30 Mar 2015 15:05:59 -0500 Subject: add load_der_x509_csr to support loading DER encoded CSRs --- docs/x509.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'docs') 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 -- cgit v1.2.3