I’m trying to order a Universal SSL certificate pack using the corresponding API request, as follows:
curl -X POST "https://api.cloudflare.com/client/v4/zones/<zone_id>/ssl/certificate_packs" \
-H "X-Auth-Email: <email>" \
-H "X-Auth-Key: <key>" \
-H "Content-Type: application/json" \
--data '{"hosts":["mydomain.com","*.mydomain.com"]}'
First the API returns a 1412 error because type
field is missing.
{"success":false,"errors":[{"code":1412,"message":"Missing required property in request: type"}],"messages":[],"result":null}
Analogous to its “advanced” counterpart “Order Advanced Certificate Manager Certificate Pack”, I added the following to my request:
--data '{"type":"universal","hosts":["mydomain.com","*.mydomain.com"]}'
But it always returns a 1401 error:
{"success":false,"errors":[{"code":1401,"message":"Error while requesting from certificate service"}],"messages":[],"result":null}
Interestingly enough, this error is always returned, regardless of the actual value in type
. So I guess the endpoint is broken, as of now?
Using a Free plan, by the way. Curious if anyone else can reproduce this error. Linking this thread from last year since it seems I wasn’t the only one wondering about this exact issue.