From cb0e13976d7ff223f16b093520182d3868ca428f Mon Sep 17 00:00:00 2001 From: Linard Schwendener Date: Wed, 1 May 2024 14:40:53 +0200 Subject: [PATCH 01/11] Added ui components needed for dns challenge --- src/web/snippet/acme.html | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/web/snippet/acme.html b/src/web/snippet/acme.html index da358e0..ba0f7f5 100644 --- a/src/web/snippet/acme.html +++ b/src/web/snippet/acme.html @@ -114,6 +114,29 @@

Generate New Certificate

+
+
+ +
+
+ + -
+
From 5ffacb1d064fefcdcf5d6352990d921b358fdd38 Mon Sep 17 00:00:00 2001 From: Linard Schwendener Date: Sat, 4 May 2024 09:13:37 +0200 Subject: [PATCH 09/11] Support all DNS Provders with acme-lego 4.16 --- src/mod/acme/acme.go | 3 +- src/web/snippet/acme.html | 169 +++++++++++++++++++++++++++++++++++--- 2 files changed, 160 insertions(+), 12 deletions(-) diff --git a/src/mod/acme/acme.go b/src/mod/acme/acme.go index a225f99..dfae459 100644 --- a/src/mod/acme/acme.go +++ b/src/mod/acme/acme.go @@ -172,7 +172,8 @@ func (a *ACMEHandler) ObtainCert(domains []string, certificateName string, email provider, err := GetDnsChallengeProviderByName(dnsProvider, dnsCredentials) if err != nil { - log.Fatal(err) + log.Println(err) + return false, err } err = client.Challenge.SetDNS01Provider(provider) diff --git a/src/web/snippet/acme.html b/src/web/snippet/acme.html index 996f1f4..4434cc4 100644 --- a/src/web/snippet/acme.html +++ b/src/web/snippet/acme.html @@ -127,15 +127,148 @@

Generate New Certificate

Please Choose...