afosto / yaac

Yet another ACME client: a decoupled LetsEncrypt client
Other
219 stars 85 forks source link

HTTP-01 challenge not working on MODE_LIVE for subdomain #59

Closed simonv-sitemngr closed 1 year ago

simonv-sitemngr commented 1 year ago

I want to authorize my order of a subdomain with http validation. When creating my code with MODE_STAGING, all works fine and got my certificate. Changing it MODE_LIVE, I have an empty response while requesting for file ($authorization->getFile())

When looking into it deeper, I found that the challenge type changes depending on which mode it uses.

Below you find the object of the authorization response:

MODE_STAGING: [challenges:protected] => Array ( [0] => Afosto\Acme\Data\Challenge Object ( [authorizationURL:protected] => https://acme-staging-v02.api.letsencrypt.org/acme/authz-v3/4839077173 [type:protected] => http-01 ...)

MODE_LIVE: [challenges:protected] => Array ( [0] => Afosto\Acme\Data\Challenge Object ( [authorizationURL:protected] => https://acme-v02.api.letsencrypt.org/acme/authz-v3/192215046117 [type:protected] => dns-01 ...)

As you can see 'type' changes. Both 'status' are valid, but empty getFile object when MODE_LIVE.

simonv-sitemngr commented 1 year ago

Test failed it with my own subdomain: test.domain.be Created new subdomain and it works fine: new.domain.be

I don't know why this happens