aboutsummaryrefslogtreecommitdiffstats
path: root/docs/x509
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2016-11-13 14:30:11 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2016-11-13 17:30:11 -0500
commit3a15b03e92c9fdeadff04ddd2ce505028b279b86 (patch)
treee314732deed27d3f3f4dba9b4c1f40dcca3e54fa /docs/x509
parentd862933de5c344fcdf99ab2f43f3bf8da65f3e41 (diff)
downloadcryptography-3a15b03e92c9fdeadff04ddd2ce505028b279b86.tar.gz
cryptography-3a15b03e92c9fdeadff04ddd2ce505028b279b86.tar.bz2
cryptography-3a15b03e92c9fdeadff04ddd2ce505028b279b86.zip
Add a bytes method to get the DER ASN.1 encoding of an X509 name. (#3236)
* Add a bytes method to get the DER ASN.1 encoding of an X509 name. This is useful for creating an OpenSSL style subject_name_hash (#3011) * add to backend interface and update multibackend * bytes -> public_bytes
Diffstat (limited to 'docs/x509')
-rw-r--r--docs/x509/reference.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/x509/reference.rst b/docs/x509/reference.rst
index bc408ae6..d3e72c0a 100644
--- a/docs/x509/reference.rst
+++ b/docs/x509/reference.rst
@@ -1142,6 +1142,16 @@ X.509 CSR (Certificate Signing Request) Builder Object
>>> cert.subject.get_attributes_for_oid(NameOID.COMMON_NAME)
[<NameAttribute(oid=<ObjectIdentifier(oid=2.5.4.3, name=commonName)>, value=u'Good CA')>]
+ .. method:: public_bytes(backend)
+
+ .. versionadded:: 1.6
+
+ :param backend: A backend supporting the
+ :class:`~cryptography.hazmat.backends.interfaces.X509Backend`
+ interface.
+
+ :return bytes: The DER encoded name.
+
.. class:: Version
.. versionadded:: 0.7