aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorChelsea Winfree <chelsea.winfree@gmail.com>2016-06-02 21:15:54 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2016-06-02 21:15:54 -0700
commite295f3ab615775c3549b7bc2e051af5cff801619 (patch)
tree29b7faa37c505eb9493bb2d30cd97a731ae81351 /docs
parent57515157fc0ecc0dd661dea523d1f1346c547c0c (diff)
downloadcryptography-e295f3ab615775c3549b7bc2e051af5cff801619.tar.gz
cryptography-e295f3ab615775c3549b7bc2e051af5cff801619.tar.bz2
cryptography-e295f3ab615775c3549b7bc2e051af5cff801619.zip
Add alias for Certificate serial as serial number (#2950)
* Add alias for Certificate serial as serial number * Adding deprecation to utils * Now with catch warnings and proper vers
Diffstat (limited to 'docs')
-rw-r--r--docs/x509/reference.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/x509/reference.rst b/docs/x509/reference.rst
index e8ce1d84..1d521e34 100644
--- a/docs/x509/reference.rst
+++ b/docs/x509/reference.rst
@@ -125,7 +125,7 @@ Loading Certificates
>>> from cryptography import x509
>>> from cryptography.hazmat.backends import default_backend
>>> cert = x509.load_pem_x509_certificate(pem_data, default_backend())
- >>> cert.serial
+ >>> cert.serial_number
2
.. function:: load_der_x509_certificate(data, backend)
@@ -273,7 +273,7 @@ X.509 Certificate Object
>>> cert.fingerprint(hashes.SHA256())
'\x86\xd2\x187Gc\xfc\xe7}[+E9\x8d\xb4\x8f\x10\xe5S\xda\x18u\xbe}a\x03\x08[\xac\xa04?'
- .. attribute:: serial
+ .. attribute:: serial_number
:type: int
@@ -281,7 +281,7 @@ X.509 Certificate Object
.. doctest::
- >>> cert.serial
+ >>> cert.serial_number
2
.. method:: public_key()
@@ -2197,7 +2197,7 @@ instances. The following common OIDs are available as constants.
Corresponds to the dotted string ``"2.5.4.5"``. This is distinct from
the serial number of the certificate itself (which can be obtained with
- :func:`~cryptography.x509.Certificate.serial`).
+ :func:`~cryptography.x509.Certificate.serial_number`).
.. attribute:: SURNAME