0

I need zero ssl API post request format

$response = Http::post('https://api.zerossl.com/certificates', [
    'certificate_domains' => [$domain],
    'certificate_csr' =>  $csrContent,
    'certificate_validity_days' => 90,
    'strict_domains' => 1, // Adjust as needed
    'access_key' => $apiKey,
]);

Above code is my post request I got this response:

"success" => false
  "error" => array:3 [▼
    "code" => 116
    "type" => "invalid_json_request_param"
    "info" => "Invalid JSON request parameter."

Help to solve I think I have problem on post request

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Kabilan N
  • 21
  • 1

0 Answers0