mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Added missing whitespace.
This commit is contained in:
parent
7f70c09c53
commit
6fbd5fa811
1 changed files with 1 additions and 3 deletions
|
|
@ -203,12 +203,10 @@ def gen_ss_cert(key, domains, not_before=None,
|
|||
"""
|
||||
assert domains, "Must provide one or more hostnames for the cert."
|
||||
cert = OpenSSL.crypto.X509()
|
||||
|
||||
try:
|
||||
cert.set_serial_number(int(OpenSSL.rand.bytes(16).encode("hex"), 16))
|
||||
except AttributeError:
|
||||
cert.set_serial_number(int.from_bytes(OpenSSL.rand.bytes(16),'big'))
|
||||
|
||||
cert.set_serial_number(int.from_bytes(OpenSSL.rand.bytes(16), 'big'))
|
||||
cert.set_version(2)
|
||||
|
||||
extensions = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue