joeyespo / grip

Preview GitHub README.md files locally before committing them.
MIT License
6.45k stars 423 forks source link

Add an option to ignore Self Signed certificates #248

Open ewetmill opened 6 years ago

ewetmill commented 6 years ago

I have an internal enterprise github server with a self signed certificate. When I use the --api-url option, I get: SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)

Add a --no-check-certificate option to skip the certificate verification step when using the --api-url option.

jshcmpbll commented 5 years ago

I would also greatly appreciate this feature.

tvon commented 4 years ago

For the lazy I cut a branch off of current master that adds verify=False to the requests.get calls. I don't have the time at the moment to go through the whole "is this a good idea in general" process, but you can clone it and run it locally.

apex-omontgomery commented 3 years ago

Python requests allows setting an environment variable to your pem bundle. Once you've obtained that pem bundle you can do the following to make sure it works

echo "export REQUESTS_CA_BUNDLE=/path/to/my/cert.pem" >> ~/.bash_profile ; source ~/.bash_profile