Answer the question
In order to leave comments, you need to log in
Why doesn't curl work with ssl on centOS + nss?
Good afternoon! The question will sound a little chaotic, but I hope you can understand =)
There is a curl connection with the following parameters:
CURLOPT_SSLCERT => '/cert.pem',
CURLOPT_SSLKEY => '/key.pem',
CURLOPT_SSLKEYPASSWD => "1111",
Answer the question
In order to leave comments, you need to log in
The key does not match the certificate.
The command you found on SO is extremely stupid, probably taken out of context. She doesn't do anything. That's just nothing, creates a copy of the file and that's it. And possibly spoil it.
How to force? Well, submit a normal certificate where the key matches the certificate ;)
Hello!
Try using the -k switch while curl is running.
curl -k should help with connecting to self-signed certificates.
Also use the -vvvvv switch when diagnosing. Will give you a detailed error response.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question