do-know / Crypt-LE

Crypt::LE - Let's Encrypt / Buypass / ZeroSSL and other ACME-servers client and library in Perl for obtaining free SSL certificates (inc. generating RSA/ECC keys and CSRs). HTTP/DNS verification is supported out of the box, EAB (External Account Binding) supported, easily extended with plugins, easily dockerized.
https://Do-Know.com
Artistic License 2.0
353 stars 60 forks source link

Could not connect to 'acme-staging-v02.api.letsencrypt.org:443': Bad address #61

Closed Keele520 closed 3 years ago

Keele520 commented 3 years ago

Hi, when i try to renew but get error feedback as below: 2021/04/13 15:20:37 [ Crypt::LE client v0.37 started. ] 2021/04/13 15:20:37 Loading an account key from account.key 2021/04/13 15:20:37 Loading a CSR from domain.csr 2021/04/13 15:20:37 Checking certificate for expiration (local file). 2021/04/13 15:20:37 Expiration threshold set at 10 days, the certificate has already expired - will be renewing. 2021/04/13 15:20:58 Could not load the resource directory: Could not connect to 'acme-staging-v02.api.letsencrypt.org:443': Bad address hope to hear some advise/suggestion.

do-know commented 3 years ago

This looks like a networking issue (for instance, if the code is running on the machine which has connectivity or DNS resolution issues). If not resolved by itself, I would suggest checking the machine configuration, starting with an attempt to resolve the acme-staging-v02.api.letsencrypt.org name from the command line (with host or nslookup) and/or trying to fetch https://acme-staging-v02.api.letsencrypt.org (either with wget or curl or by manually using telnet). Have you attempted to retry or this is still reliably reproducible 100% of the time?

Keele520 commented 3 years ago

Thanks for your reply, I think is my connectivity problem, troubleshooting with nslookup command some time get unknow answer and some time get correct feedback. Once get correct feedback, using the renew is working, thanks again.