Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

uniqueginun's avatar

Send certificate.cer with curl request

I'm trying to send a .cer file with my curl request and something is just now working. I don't know if something is wrong with my code or what

if(file_exists( 'certificate.cer')) {
     curl_setopt($ch, curlopt_cainfo, 'certificate.cer'));
}

but I got CURL error 56

0 likes
2 replies
uniqueginun's avatar

yes. everything is ok except the part of certificate parameters. have you done it before because I'm stuck

Please or to participate in this conversation.