Open nulman opened 3 years ago
All certificates generate as "Version: 1 (0x0)"
Looking at the code, I see that cert.set_version is not used anywhere so it defaults to 0 (version 1). I think perhaps this should also be either inferred from the read certs, passed as a config option or at least default to cert.set_version(2) (version 3) anywhere after this line https://github.com/sumanj/frankencert/blob/5bbaae85cab35882dec1672ef037a42e29180b40/frankengen/franken_core.py#L31
cert.set_version
cert.set_version(2)
Doesn't the code default to version 3 (0x2) when the extensions are present?
It does not appear to be so
All certificates generate as "Version: 1 (0x0)"
Looking at the code, I see that
cert.set_version
is not used anywhere so it defaults to 0 (version 1). I think perhaps this should also be either inferred from the read certs, passed as a config option or at least default tocert.set_version(2)
(version 3) anywhere after this line https://github.com/sumanj/frankencert/blob/5bbaae85cab35882dec1672ef037a42e29180b40/frankengen/franken_core.py#L31