aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2016-09-09 21:32:14 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2016-09-09 20:32:14 -0500
commit0fa6b39f8e9685942b23ff9a878fe34e771a8c7e (patch)
tree2cb7dc12c57951bfe64e8f80ba8741ff8d7fbeb4
parentee9710fad662616454cbf99faaaa3b47d547ccd9 (diff)
downloadcryptography-0fa6b39f8e9685942b23ff9a878fe34e771a8c7e.tar.gz
cryptography-0fa6b39f8e9685942b23ff9a878fe34e771a8c7e.tar.bz2
cryptography-0fa6b39f8e9685942b23ff9a878fe34e771a8c7e.zip
Fixed #3143 -- added the mandatory serial number parameter (#3144)
-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(