aboutsummaryrefslogtreecommitdiffstats
path: root/docs/x509/reference.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/x509/reference.rst')
-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