Browse Source

change validity time

master
Andrea Cimbalo 7 years ago
parent
commit
0fbdacc2ed
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      models/ssl.py

+ 3
- 2
models/ssl.py View File

@ -63,7 +63,8 @@ class SSLAuthority(Authority):
key_length = '4096'
key_algorithm = 'sha256'
ca_validity = '365'
root_ca_validity = '3650'
ca_validity = '1825'
cert_validity = '365'
def generate(self):
@ -88,7 +89,7 @@ class SSLAuthority(Authority):
'-config', os.path.join(os.path.dirname(os.path.abspath(getsourcefile(lambda:0))), '../openssl-config/openssl.cnf'),
'-new',
'-x509',
'-days', self.ca_validity,
'-days', self.root_ca_validity,
'-key', self.path,
# '-extensions', 'v3_ca'
'-out', "%s.pub"%self.path,


Loading…
Cancel
Save