first iteration to automate certificate generation

This commit is contained in:
m5r
2023-02-26 11:02:30 +01:00
parent e25db3094f
commit d6bc349e73
12 changed files with 291 additions and 5 deletions

14
main.go
View File

@@ -4,7 +4,7 @@ import (
"flag"
"strings"
xip "local-ip.sh/xip"
"local-ip.sh/xip"
)
const (
@@ -17,5 +17,17 @@ func main() {
flag.Parse()
n := xip.NewXip(zone, strings.Split(nameservers, ","), *port)
// not functional yet
/* go func() {
account := certs.LoadAccount()
log.Println(account.Registration.Body.Contact)
ddd := certs.NewCertsClient(n, account)
time.Sleep(5 * time.Second)
fmt.Println("requesting certs")
ddd.RequestCertificate()
}() */
n.StartServer()
}