Compare commits
1 Commits
master
...
renew-dead
Author | SHA1 | Date |
---|---|---|
giuliof | e0ac51b5c6 |
2
main.py
2
main.py
|
@ -260,7 +260,7 @@ def get_gateway_config(fqdn):
|
|||
@app.route("/gateway/<fqdn>/renew", methods=["POST"])
|
||||
@auth.login_required
|
||||
def post_gateway_renew(fqdn):
|
||||
os.environ["EASYRSA_CERT_EXPIRE"] = "180" # days
|
||||
os.environ["EASYRSA_CERT_EXPIRE"] = "1095" # days
|
||||
|
||||
r = os.system("easyrsa renew {} nopass".format(fqdn))
|
||||
if r != 0:
|
||||
|
|
Loading…
Reference in New Issue