Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am developing and I need to access https://localhost. I know the certificate will not match. I just want curl to ignore that. Currently it gives me the following error message:

curl: (51) SSL peer certificate or SSH remote key was not OK

Is it possible to tell curl to perform the access anyway?

share|improve this question
add comment

2 Answers

up vote 11 down vote accepted

Yeah, you can do that, as curl --help would have told you:

curl -k

or

curl --insecure
share|improve this answer
    
right, I just found it myself. I looked for it yesterday and it was not there! :) –  jeckyll2hide Jan 16 '13 at 23:12
add comment

curl -k or curl --insecure does NOT fix this particular error condition: "curl: (51) SSL peer certifcate

share|improve this answer
add comment

Your Answer

 
discard

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.