0

How to add self signed certificate to certificate bundle so that the Curl http client can verify the self signed certificate as valid one?

1
  • I just added the server.crt file path to CURLOPT_CAINFO.Now I get the error 51: SSL peer certificate or SSH remote key was not OK.
    – crusader
    Commented May 20, 2013 at 7:09

1 Answer 1

0

Create your own ca instead:

  • generate your own ca
  • generate a cert for your server signed by your own ca
  • add this ca to the certificate bundle
2
  • It sounds so simple when you put it like that... ;) Commented May 20, 2013 at 7:45
  • I've added the self signed CA certificate to the bundle and run c_rehash. Now I get the error 35: SSL connect error! further error message I could get into is : SSL routines:SSL3_GET_MESSAGE: excessive message size! I don't know what the heck that means? :(
    – crusader
    Commented May 20, 2013 at 15:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .