aboutsummaryrefslogtreecommitdiffstats
path: root/docs/x509/tutorial.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/x509/tutorial.rst')
-rw-r--r--docs/x509/tutorial.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/x509/tutorial.rst b/docs/x509/tutorial.rst
index 6941372f..143cdfc5 100644
--- a/docs/x509/tutorial.rst
+++ b/docs/x509/tutorial.rst
@@ -134,6 +134,8 @@ Then we generate the certificate itself:
... issuer
... ).public_key(
... private_key.public_key()
+ ... ).serial_number(
+ ... x509.random_serial_number()
... ).not_valid_before(
... datetime.datetime.utcnow()
... ).not_valid_after(