mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 15:10:38 +01:00
call letsencrypt script
This commit is contained in:
parent
6fdf418b92
commit
e0281f64fb
1 changed files with 6 additions and 0 deletions
|
@ -7,6 +7,7 @@ import json
|
||||||
import math
|
import math
|
||||||
import time
|
import time
|
||||||
import datetime, time
|
import datetime, time
|
||||||
|
import subprocess
|
||||||
import codecs, grpc, os
|
import codecs, grpc, os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import toml
|
import toml
|
||||||
|
@ -104,6 +105,11 @@ def subscriptionsNew(ip, dnsservice, id, token):
|
||||||
duckDNSupdate(getsubdomain(id), token, realip)
|
duckDNSupdate(getsubdomain(id), token, realip)
|
||||||
|
|
||||||
# todo: run the ACME script
|
# todo: run the ACME script
|
||||||
|
acmeResult=subprocess.check_output(["/home/admin/config.scripts/bonus.letsencrypt.sh", "issue-cert", "duckdns", "testblitz2.duckdns.org", "056d28ae-d2c4-4e7e-ac66-32f96f3c9eca", "tor"])
|
||||||
|
print(acmeResult)
|
||||||
|
time.sleep(6)
|
||||||
|
if (acmeResult.find("error=") > -1):
|
||||||
|
raise BlitzError("letsancrypt acme failed", acmeResult)
|
||||||
|
|
||||||
# create subscription data for storage
|
# create subscription data for storage
|
||||||
subscription = {}
|
subscription = {}
|
||||||
|
|
Loading…
Add table
Reference in a new issue