diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-12-14 19:00:51 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-12-15 15:50:01 -0600 |
commit | e76cd27c28f75f3972ddcf5e15d5e37e6da2098e (patch) | |
tree | 82314d82881148f7a6047fe5f265da6569b4af0b /docs | |
parent | 4903adc2f791407203561966f33d85a02ab1b16e (diff) | |
download | cryptography-e76cd27c28f75f3972ddcf5e15d5e37e6da2098e.tar.gz cryptography-e76cd27c28f75f3972ddcf5e15d5e37e6da2098e.tar.bz2 cryptography-e76cd27c28f75f3972ddcf5e15d5e37e6da2098e.zip |
rename X509 classes to remove X509 and improve some tests
Diffstat (limited to 'docs')
-rw-r--r-- | docs/x509.rst | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/docs/x509.rst b/docs/x509.rst index ba84f6e7..c682e5e8 100644 --- a/docs/x509.rst +++ b/docs/x509.rst @@ -17,7 +17,9 @@ Loading Certificates .. versionadded:: 0.7 - Deserialize a certificate from PEM encoded data. + Deserialize a certificate from PEM encoded data. PEM certificates are + base64 decoded and have delimiters that look like + ``-----BEGIN CERTIFICATE-----``. :param bytes data: The PEM encoded certificate data. @@ -25,13 +27,15 @@ Loading Certificates :class:`~cryptography.hazmat.backends.interfaces.X509Backend` interface. - :returns: An instance of :class:`~cryptography.x509.X509Certificate`. + :returns: An instance of :class:`~cryptography.x509.Certificate`. .. function:: load_der_x509_certificate(data, backend) .. versionadded:: 0.7 - Deserialize a certificate from DER encoded data. + Deserialize a certificate from DER encoded data. DER is a binary format + and is commonly found in files with the ``cer`` suffix (although file + suffixes are not a guarantee of encoding type). :param bytes data: The DER encoded certificate data. @@ -39,7 +43,7 @@ Loading Certificates :class:`~cryptography.hazmat.backends.interfaces.X509Backend` interface. - :returns: An instance of :class:`~cryptography.x509.X509Certificate`. + :returns: An instance of :class:`~cryptography.x509.Certificate`. .. testsetup:: @@ -75,18 +79,19 @@ Loading Certificates >>> cert.serial 2 -Interface -~~~~~~~~~ +X.509 Certificate Object +~~~~~~~~~~~~~~~~~~~~~~~~ -.. class:: X509Certificate +.. class:: Certificate .. versionadded:: 0.7 .. attribute:: version - :type: :class:`~cryptography.x509.X509Version` + :type: :class:`~cryptography.x509.Version` - The certificate version as an enumeration. + The certificate version as an enumeration. Version 3 certificates are + the latest version and also the only type you should see in practice. .. method:: fingerprint(algorithm) @@ -127,10 +132,7 @@ Interface certificate in UTC. This value is inclusive. -Support Classes -~~~~~~~~~~~~~~~ - -.. class:: X509Version +.. class:: Version .. versionadded:: 0.7 @@ -144,7 +146,7 @@ Support Classes For version 3 X.509 certificates. -.. class:: InvalidX509Version +.. class:: InvalidVersion This is raised when an X.509 certificate has an invalid version number. |