From d690b18c12f7836c289c778c4eb1e836cb79225d Mon Sep 17 00:00:00 2001 From: m5r Date: Sun, 6 Nov 2022 19:30:15 +0100 Subject: [PATCH] generate certs for *.local-ip.sh --- .gitignore | 4 ++-- .../admin@local-ip.sh/account.json | 12 ++++++++++++ xip/xip.go | 3 +++ 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 .lego/accounts/acme-v02.api.letsencrypt.org/admin@local-ip.sh/account.json diff --git a/.gitignore b/.gitignore index 00ce5fb..18c5545 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -# build output -local-ip.sh +.lego/accounts/acme-v02.api.letsencrypt.org/*/keys +.lego/certificates \ No newline at end of file diff --git a/.lego/accounts/acme-v02.api.letsencrypt.org/admin@local-ip.sh/account.json b/.lego/accounts/acme-v02.api.letsencrypt.org/admin@local-ip.sh/account.json new file mode 100644 index 0000000..aea96d4 --- /dev/null +++ b/.lego/accounts/acme-v02.api.letsencrypt.org/admin@local-ip.sh/account.json @@ -0,0 +1,12 @@ +{ + "email": "admin@local-ip.sh", + "registration": { + "body": { + "status": "valid", + "contact": [ + "mailto:admin@local-ip.sh" + ] + }, + "uri": "https://acme-v02.api.letsencrypt.org/acme/acct/801840592" + } +} \ No newline at end of file diff --git a/xip/xip.go b/xip/xip.go index 3ee8e81..4aaabaf 100644 --- a/xip/xip.go +++ b/xip/xip.go @@ -90,6 +90,9 @@ var ( CNAME: []*dns.CNAME{ {Target: "local-ip.sh.n2kl11.flydns.net."}, }, + /* TXT: &dns.TXT{ + Txt: []string{"Gu1FvnTHYuf0qWclc903w8JPDJajHE510AweTP2PkhE"}, + }, */ }, } )