Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kedaio opened this issue Mar 24, 2017 · 4 comments
Open

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

kedaio opened this issue Mar 24, 2017 · 4 comments

Comments

@kedaio
Copy link

kedaio commented Mar 24, 2017

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
Copy link
Contributor

daya0576 commented Nov 9, 2017

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

@itsho
Copy link

itsho commented Dec 13, 2018

Another error message I I like to ignore -

certificate signed by unknown authority

@pythonreactor
Copy link

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

@eurecomphil
Copy link

I am currently experiencing this issue too on Ubuntu 18.04.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants