Buypass is not compatible with ACME client "dehydrated"


I'm using the ACME client "dehydrated" which is also included in some major Linux distributions (e.g. Debian) and wanted to try Buypass instead of Let's Encrypt. However trying to get a certificate results in an error message:

 + Signing domains...
 + Generating private key...
 + Generating signing request...
 + Requesting new certificate order from CA...
 + Received 1 authorizations URLs from the CA
  + ERROR: An error occurred while sending post-request to,"","", (Status 404)

HTTP/1.1 100 Continue

HTTP/1.1 404 Not Found
Access-Control-Allow-Credentials: false
Access-Control-Allow-Headers: Content-Type,Authorization,X-Requested-With,Content-Length,Accept,Origin,X-Buypass-Session-Id,X-Buypass-Locale
Access-Control-Allow-Methods: GET,PUT,POST,OPTIONS,HEAD,DELETE
Cache-Control: no-store
Content-Language: en
Content-Length: 65
Content-Type: application/json
Date: Tue, 30 Jun 2020 12:34:39 GMT
Mdc-Correlationid: f9e11239-5df0-4779-a444-58bc95948c03
Vary: Accept-Encoding
X-Buypass-Internal-Error-Detail-Code: NOT_FOUND

{"code":404,"message":"NOT_FOUND","details":"HTTP 404 Not Found"}

I'm not sure if the incompatibily is in the client or in the server, but unfortunately they don't work with each other. Someone else has already created a Github issue about Buypass, but so far without a solution. Any idea what could be the issue?

2replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Seems to be responding;


    Looks like they are all sent in at the same time here: 

      + ERROR: An error occurred while sending post-request to,"","", (Status 404)
    Like 1
  • So with a little bit of Bash tracing I figured out what the problem is:

    • The official Let's Encrypt API returns pretty-printed JSON.
    • The Buypass API returns minified JSON.
    • dehydrated, being a simple Bash script, uses sed and regular expressions to parse JSON responses (a big no-no in my view) and expects newlines or at least spaces between the items in the "authorizations" list. Since there are no spaces the script doesn't split the authorizations correctly and later sends the above request containing multiple comma-separated URLs.
    Like 1
Replies are closed
  • Status Answered
  • 8 mths agoLast active
  • 2Replies closed
  • 92Views
  • 1 Following

Buypass Official Community

This is the official community of Buypass.  A Root CA located in Norway.