auto-ssl / auto-ssl/lua-resty-auto-ssl

Issue ssl certificate generate by lua error like urn:acme:error:malformed

Open
#230 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Lua
Stars
2k
Forks
184
PR merge metrics
No merged PRs in 30d

Description

I have an issue on my server when ssl generate by openresty and my server down. The error like,'

err: + ERROR: An error occurred while sending post-request to https://acme-v01.api.letsencrypt.org/acme/new-authz (Status 400)

Details:
{
"type": "urn:acme:error:malformed",
"detail": "Error creating new authz :: Domain name ends in a dot",
"status": 400
}

One of the domain have wrong and it cause issue. Can you please how to resolve this wrong domain. Any way we can check the domain and reject it.

Currently my implementation is:
auto_ssl:set("allow_domain", function(domain)
return true
end)

Please help me to resolve ASAP.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the auto_ssl:set("allow_domain", ...) callback shown in the issue and trace how its result reaches the Let's Encrypt new-authz request. Reproduce or inspect handling for a domain ending in a dot; done should include rejecting or safely handling that invalid domain before the ACME request, with the server remaining available.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, nginx
Domain
backend, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.