sanathp / statusok

Monitor your Website and APIs from your Computer. Get Notified through Slack, E-mail when your server is down or response time is more than expected.
Other
1.62k stars 197 forks source link

How to ignore bad (self-signed) SSL certificate in requests #17

Open kedaio opened 7 years ago

kedaio commented 7 years ago

I tried to monitor a website with self-signed SSL certificate, but got error due to cert validation. Is there a way to skip cert validation?

by the way, I tried to set InsecureSkipVerify=true but that doesn't seem to work.

=========== error msg below =============

acheng@epcnszxw0150:~/Downloads/statusok_linux$ env InsecureSkipVerify=true ./statusok --config config.json Reading File : config.json No clients Registered for Notifications Sending Test notifications to the registered clients No Database selected.

Sending requests to apis.....making sure everything is right before we start monitoring Api Count: 1 Request # 0 : GET https://ecsc001067.example.com:9002/

Failed !!!! Not able to perfome below request

----Request Deatails--- Url : https://ecsc001067.example.com:9002/ Type : GET Error Reason : Get https://ecsc001067.example.com:9002/: x509: certificate is valid for hybris, not ecsc001067.example.com

Please check the config file and try again

daya0576 commented 6 years ago

Solved by this command in Ubuntu 16.04: apt-get install -y ca-certificates

itsho commented 5 years ago

Another error message I I like to ignore -

certificate signed by unknown authority

pythonreactor commented 4 years ago

I am currently experiencing this issue. Ubuntu 18.x.x

eurecomphil commented 4 years ago

I am currently experiencing this issue too on Ubuntu 18.04.1