-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DNS provider for UKFast SafeDNS #1545
Conversation
Hello, in order for a PR adding a DNS provider to be accepted, you have to:
make test
make test
make generate-dns
rm -rf .lego
./lego -m [email protected] --dns YOUR_PROVIDER_NAME -d *.example.com -d example.com -s https://acme-staging-v02.api.letsencrypt.org/directory run Note the wildcard domain is important.
make checks
|
28fe672
to
30847bc
Compare
Example run as requested; ❯ export SAFEDNS_AUTH_TOKEN=asdfasdf
❯ dist/lego -m [email protected] --dns safedns -d '*.testops.ukfast.co.uk' -d 'testops.ukfast.co.uk' -s https://acme-staging-v02.api.letsencrypt.org/directory run
2021/12/16 14:58:16 No key found for account [email protected]. Generating a P256 key.
2021/12/16 14:58:16 Saved key to /home/dane/projects/lego/.lego/accounts/acme-staging-v02.api.letsencrypt.org/[email protected]/keys/[email protected]
2021/12/16 14:58:17 Please review the TOS at https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf
Do you accept the TOS? Y/n
y
2021/12/16 14:58:19 [INFO] acme: Registering account for [email protected]
!!!! HEADS UP !!!!
Your account credentials have been saved in your Let's Encrypt
configuration directory at "/home/dane/projects/lego/.lego/accounts".
You should make a secure backup of this folder now. This
configuration directory will also contain certificates and
private keys obtained from Let's Encrypt so making regular
backups of this folder is ideal.
2021/12/16 14:58:19 [INFO] [*.testops.ukfast.co.uk, testops.ukfast.co.uk] acme: Obtaining bundled SAN certificate
2021/12/16 14:58:20 [INFO] [*.testops.ukfast.co.uk] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz-v3/1195778128
2021/12/16 14:58:20 [INFO] [testops.ukfast.co.uk] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz-v3/1195778138
2021/12/16 14:58:20 [INFO] [*.testops.ukfast.co.uk] acme: use dns-01 solver
2021/12/16 14:58:20 [INFO] [testops.ukfast.co.uk] acme: Could not find solver for: tls-alpn-01
2021/12/16 14:58:20 [INFO] [testops.ukfast.co.uk] acme: Could not find solver for: http-01
2021/12/16 14:58:20 [INFO] [testops.ukfast.co.uk] acme: use dns-01 solver
2021/12/16 14:58:20 [INFO] [*.testops.ukfast.co.uk] acme: Preparing to solve DNS-01
2021/12/16 14:58:20 [INFO] safedns: creating record {Name:_acme-challenge.testops.ukfast.co.uk Type:TXT Content:"1wUvgm14E8sgWJInLRmy-tcaadflvvD90UPWGS40pNo" TTL:30} at https://api.ukfast.io/safedns/v1/zones/testops.ukfast.co.uk/records
2021/12/16 14:58:20 [INFO] safedns: created record with ID 5020534
2021/12/16 14:58:20 [INFO] [testops.ukfast.co.uk] acme: Preparing to solve DNS-01
2021/12/16 14:58:20 [INFO] safedns: creating record {Name:_acme-challenge.testops.ukfast.co.uk Type:TXT Content:"qXofvo-hbD_3mR-LyDr0xwQZFkRMAcAl6pgAiu2johU" TTL:30} at https://api.ukfast.io/safedns/v1/zones/testops.ukfast.co.uk/records
2021/12/16 14:58:20 [INFO] safedns: created record with ID 5020535
2021/12/16 14:58:20 [INFO] [*.testops.ukfast.co.uk] acme: Trying to solve DNS-01
2021/12/16 14:58:20 [INFO] [*.testops.ukfast.co.uk] acme: Checking DNS record propagation using [127.0.0.53:53]
2021/12/16 14:58:25 [INFO] Wait for propagation [timeout: 1m0s, interval: 5s]
2021/12/16 14:58:25 [INFO] [*.testops.ukfast.co.uk] acme: Waiting for DNS record propagation.
2021/12/16 14:58:34 [INFO] [*.testops.ukfast.co.uk] The server validated our request
2021/12/16 14:58:34 [INFO] [testops.ukfast.co.uk] acme: Trying to solve DNS-01
2021/12/16 14:58:34 [INFO] [testops.ukfast.co.uk] acme: Checking DNS record propagation using [127.0.0.53:53]
2021/12/16 14:58:39 [INFO] Wait for propagation [timeout: 1m0s, interval: 5s]
2021/12/16 14:58:39 [INFO] [testops.ukfast.co.uk] acme: Waiting for DNS record propagation.
2021/12/16 14:58:51 [INFO] [testops.ukfast.co.uk] The server validated our request
2021/12/16 14:58:51 [INFO] [*.testops.ukfast.co.uk] acme: Cleaning DNS-01 challenge
2021/12/16 14:58:51 [INFO] safedns: cleaning up record 5020534 at https://api.ukfast.io/safedns/v1/zones/testops.ukfast.co.uk/records/5020534
2021/12/16 14:58:51 [INFO] [testops.ukfast.co.uk] acme: Cleaning DNS-01 challenge
2021/12/16 14:58:51 [INFO] safedns: cleaning up record 5020535 at https://api.ukfast.io/safedns/v1/zones/testops.ukfast.co.uk/records/5020535
2021/12/16 14:58:51 [INFO] [*.testops.ukfast.co.uk, testops.ukfast.co.uk] acme: Validations succeeded; requesting certificates
2021/12/16 14:58:52 [INFO] [*.testops.ukfast.co.uk] Server responded with a certificate. |
55cb5da
to
5ee45d7
Compare
Right, sorry, that should pass checks now. |
a15610a
to
fb05afc
Compare
to answer this point:
I need to know who you are: are you a UKFast employee? Are you a UKFast customer? etc. |
@ldez, I'm a UKFast employee. Happy to maintain this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍
fb05afc
to
2a3632a
Compare
Adds UKFast's SafeDNS dns01 provider for #1503.