mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Randomize serial numbers of DVSNI challenge certificates.
This commit is contained in:
parent
c799a2d57e
commit
639efaeb7b
1 changed files with 1 additions and 1 deletions
|
|
@ -203,7 +203,7 @@ def gen_ss_cert(key, domains, not_before=None,
|
|||
"""
|
||||
assert domains, "Must provide one or more hostnames for the cert."
|
||||
cert = OpenSSL.crypto.X509()
|
||||
cert.set_serial_number(1337)
|
||||
cert.set_serial_number(int(OpenSSL.rand.bytes(16).encode("hex"), 16))
|
||||
cert.set_version(2)
|
||||
|
||||
extensions = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue