How to add self signed certificate to certificate bundle?

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?

crusader

Posted 2013-05-20T06:52:35.290

Reputation: 11

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. – None – 2013-05-20T07:09:45.670

Answers

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

cstamas

Posted 2013-05-20T06:52:35.290

Reputation: 304

It sounds so simple when you put it like that... ;) – Mark Henderson – 2013-05-20T07:45:03.247

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 – 2013-05-20T15:28:17.910