Skip to content
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

Failing with curl returned with 3 #65

Open
manphambss opened this issue Apr 23, 2024 · 1 comment
Open

Failing with curl returned with 3 #65

manphambss opened this issue Apr 23, 2024 · 1 comment

Comments

@manphambss
Copy link

manphambss commented Apr 23, 2024

Hi guys! Has anyone faced this error yet?
I ran this command:

docker run -d
--name nginx-auto-ssl \
--restart on-failure
-p 80:80
-p 443:443
-e ALLOWED_DOMAINS=uni8.tech
-e LETSENCRYPT_URL='https://acme-staging-v02.api.letsencrypt.org/directory' \
-e SITES='uni8.tech=localhost:3000'
valian/docker-nginx-auto-ssl

...And I got the logs:

Processing www.uni8.tech

  • Signing domains...
  • Generating private key...
  • Generating signing request...
  • Requesting new certificate order from CA...
  • Received 1 authorizations URLs from the CA
  • Handling authorization for www.uni8.tech
  • Found valid authorization for www.uni8.tech
  • 0 pending challenge(s)
  • Requesting certificate...
    err: ERROR: Problem connecting to server (post for ; curl returned with 3)
    , context: ssl_certificate_by_lua*, client: 123.23.152.97, server: 0.0.0.0:443
    2024/04/23 08:36:34 [error] 25#25: 136 [lua] ssl_certificate.lua:97: issue_cert(): auto-ssl: issuing new certificate failed: dehydrated failure, context: ssl_certificate_by_lua, client: 123.23.152.97, server: 0.0.0.0:443
    2024/04/23 08:36:34 [error] 25#25: 136 [lua] ssl_certificate.lua:291: auto-ssl: could not get certificate for www.uni8.tech - using fallback - failed to get or issue certificate, context: ssl_certificate_by_lua, client: 123.23.152.97, server: 0.0.0.0:443
@Valian
Copy link
Owner

Valian commented Apr 23, 2024

Hi @manphambss. Hard to say, only non-standard thing in your config is LETSENCRYPT_URL pointing to staging. Have you tried to just skip it?

Also this repository is just a convenience "wrapper" around https://github.com/auto-ssl/lua-resty-auto-ssl. Maybe you could try asking there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants