From 6f25ced08ea538b55e1a942c4bed48dae5d30de7 Mon Sep 17 00:00:00 2001 From: Cyril Stoller Date: Mon, 27 Aug 2018 13:37:51 +0200 Subject: Add note on zero-based certificate version value (#790) --- src/OpenSSL/crypto.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OpenSSL/crypto.py b/src/OpenSSL/crypto.py index ea7b354..51063b5 100644 --- a/src/OpenSSL/crypto.py +++ b/src/OpenSSL/crypto.py @@ -1128,7 +1128,8 @@ class X509(object): def set_version(self, version): """ - Set the version number of the certificate. + Set the version number of the certificate. Note that the + version value is zero-based, eg. a value of 0 is V1. :param version: The version number of the certificate. :type version: :py:class:`int` -- cgit v1.2.1