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:
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.