diff options
author | Cyril Stoller <stocyr@users.noreply.github.com> | 2018-08-27 13:37:51 +0200 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2018-08-27 07:37:51 -0400 |
commit | 6f25ced08ea538b55e1a942c4bed48dae5d30de7 (patch) | |
tree | 2a5704ec5da3a495ed941a92f6b8072b97926256 | |
parent | 0e6c553bc57587dc644430b7336e6bf4d90180a6 (diff) | |
download | pyopenssl-6f25ced08ea538b55e1a942c4bed48dae5d30de7.tar.gz |
Add note on zero-based certificate version value (#790)
-rw-r--r-- | src/OpenSSL/crypto.py | 3 |
1 files changed, 2 insertions, 1 deletions
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` |