Hi team,
Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:
egide.net
I ran this command:
Ansible task:
- name: Create a challenge using a account key file.
community.crypto.acme_certificate:
account_key_src: /path/to/my/key.pem
account_email: noreply@egide.net
src: /path/to/my/csr.csr
cert: /path/tomy/crt.crt
challenge: dns-01
acme_directory: https://acme-v02.api.letsencrypt.org/directory
# Renew if the certificate is at least 30 days old
remaining_days: 60
acme_version: 2
terms_agreed: yes
register: hallenge
tags:
- cert
- renew_cert
It produced this output:
"challenge": {
"account_uri": "https://acme-v02.api.letsencrypt.org/acme/acct/1262644196",
"authorizations": {
"ea.egide.net": {
"challenges": [
{
"status": "pending",
"token": "7eCW7deehxHX2EPXZ3iC4bNhZfpKs0nbM5q4QrviG9o",
"type": "http-01",
"url": "https://acme-v02.api.letsencrypt.org/acme/chall-v3/255818944746/vonPZg"
},
{
"status": "pending",
"token": "7eCW7deehxHX2EPXZ3iC4bNhZfpKs0nbM5q4QrviG9o",
"type": "dns-01",
"url": "https://acme-v02.api.letsencrypt.org/acme/chall-v3/255818944746/DhyuyQ"
},
{
"status": "pending",
"token": "7eCW7deehxHX2EPXZ3iC4bNhZfpKs0nbM5q4QrviG9o",
"type": "tls-alpn-01",
"url": "https://acme-v02.api.letsencrypt.org/acme/chall-v3/255818944746/NJkUbA"
}
],
"expires": "2023-08-24T15:07:54Z",
"identifier": {
"type": "dns",
"value": "ea.egide.net"
},
"status": "pending",
"uri": "https://acme-v02.api.letsencrypt.org/acme/authz-v3/255818944746"
}
},
"cert_days": -1,
"challenge_data": {
"ea.egide.net": {
"dns-01": {
"record": "_acme-challenge.ea.egide.net",
"resource": "_acme-challenge",
"resource_value": "D1GSBOkDQlHaZCKmtjc9fu9itTwoOYuskhsftAvyRdw"
},
"http-01": {
"resource": ".well-known/acme-challenge/7eCW7deehxHX2EPXZ3iC4bNhZfpKs0nbM5q4QrviG9o",
"resource_value": "7eCW7deehxHX2EPXZ3iC4bNhZfpKs0nbM5q4QrviG9o.pbyfFCvdWxI2OxLkbECg1ep7jOoYh--n04DXxj6Wyzg"
},
"tls-alpn-01": {
"resource": "ea.egide.net",
"resource_original": "dns:ea.egide.net",
"resource_value": "D1GSBOkDQlHaZCKmtjc9fu9itTwoOYuskhsftAvyRdw="
}
}
},
"challenge_data_dns": {
"_acme-challenge.ea.egide.net": [
"D1GSBOkDQlHaZCKmtjc9fu9itTwoOYuskhsftAvyRdw"
]
},
"changed": true,
"failed": false,
"finalize_uri": "https://acme-v02.api.letsencrypt.org/acme/finalize/1262644196/202211438626",
"order_uri": "https://acme-v02.api.letsencrypt.org/acme/order/1262644196/202211438626"
}
}
And when I do a dig I got the correct TXT:
o.pouilly ~ $ dig @8.8.8.8 -t TXT _acme-challenge.ea.egide.net
; <<>> DiG 9.10.6 <<>> @8.8.8.8 -t TXT _acme-challenge.ea.egide.net
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27409
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;_acme-challenge.ea.egide.net. IN TXT
;; ANSWER SECTION:
_acme-challenge.ea.egide.net. 21600 IN TXT "D1GSBOkDQlHaZCKmtjc9fu9itTwoOYuskhsftAvyRdw"
;; Query time: 50 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sat Aug 19 17:31:03 CEST 2023
;; MSG SIZE rcvd: 113
I don't understand why the challenge stay In pending ?
Regards,