Cannot download certificate from staging environment

Hello,

I am migrating from AcmeSharp to AcmeSharpCore to support AcmeV2 in an application I am developing and I am getting a “method not found” when downloading the certificate. As far as I can tell I am not missing any steps when asking for a new certificate. I am doing this:

  • Creating a new order
  • Creating DNS entry _acme-challenge.alxb.orckestra.org with the TXT value specified for the challenge
  • “Answering” the challenge
  • Finalizing the order
    • Waiting for the order’s payload certificate to be present
  • Downloading the order’s payload certificate
    • This raises the “method not found” error when downloading the certificate

I searched on Google to see if someone had a similar issue without success.

You will find more details below.
Any help is appreciated.

My domain is: alxb.orckestra.org and I am not using CAA records
I am generating a wildcard certificate for *.alxb.orckestra.org
Url for the certificate: https://acme-staging-v02.api.letsencrypt.org/acme/cert/faa95d47fd1a202721b6efa593aecbb63ff3

click to show the response when I finalized the order

{
“Payload”:{
“status”:“valid”,
“expires”:“2020-06-04T15:45:45Z”,
“notBefore”:null,
“notAfter”:null,
“identifiers”:[
{
“type”:“dns”,
“value”:"*.alxb.orckestra.org"
}
],
“authorizations”:[
https://acme-staging-v02.api.letsencrypt.org/acme/authz-v3/59941238
],
“finalize”:“https://acme-staging-v02.api.letsencrypt.org/acme/finalize/13903402/96399082”,
“certificate”:“https://acme-staging-v02.api.letsencrypt.org/acme/cert/faa95d47fd1a202721b6efa593aecbb63ff3
},
“OrderUrl”:“https://acme-staging-v02.api.letsencrypt.org/acme/order/13903402/96399082
}

click to show the response when I attempted to download the certificate

{
“type”: “urn:ietf:params:acme:error:malformed”,
“detail”: “Method not allowed”,
“status”: 405
}

1 Like

Hi @orckadrouin

you have to use a POST command to download the certificate.

4 Likes

Hi @JuergenAuer,

Changing from a GET to a POST (with the required headers) solved my issue.

Thanks!

4 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.