Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

migrated from May 20 '13 at 7:45

This question came from our site for system and network administrators.

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 May 20 '13 at 7:09

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
share|improve this answer
It sounds so simple when you put it like that... ;) – Mark Henderson May 20 '13 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 May 20 '13 at 15:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.