Browse Source

generate fullchain certificate

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

+ 4
- 0
models/ssl.py View File

@ -144,4 +144,8 @@ class SSLAuthority(Authority):
'-out', cert_path,
'-%s'%self.key_algorithm])
if not self.isRoot:
with open(cert_path, "a") as cert_file:
with open("%s.pub"%self.path) as ca_cert_file:
cert_file.writelines(ca_cert_file.readlines())
return self.ca_validity

Loading…
Cancel
Save