Skip to content

Commit 6f25ced

Browse files
stocyralex
authored andcommitted
Add note on zero-based certificate version value (#790)
1 parent 0e6c553 commit 6f25ced

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/OpenSSL/crypto.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,8 @@ def from_cryptography(cls, crypto_cert):
11281128

11291129
def set_version(self, version):
11301130
"""
1131-
Set the version number of the certificate.
1131+
Set the version number of the certificate. Note that the
1132+
version value is zero-based, eg. a value of 0 is V1.
11321133
11331134
:param version: The version number of the certificate.
11341135
:type version: :py:class:`int`

0 commit comments

Comments
 (0)