How to ignore bad (self-signed) SSL certificate in requests
kedaio opened this issue · comments
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.comPlease check the config file and try again
Solved by this command in Ubuntu 16.04:
apt-get install -y ca-certificates
Another error message I I like to ignore -
certificate signed by unknown authority
I am currently experiencing this issue. Ubuntu 18.x.x
I am currently experiencing this issue too on Ubuntu 18.04.1