druidfi / stonehenge

Multi-project local development environment & toolset on Docker
MIT License
61 stars 6 forks source link

mkcert generated certs don't work with CLI tools #47

Open back-2-95 opened 3 years ago

back-2-95 commented 3 years ago

E.g. if I make requests to my local container (Traefik + mkcert generated certs) with Httpie. Note that these certs work when accessing the site with Chrome or Firefox. I use macOS Big Sur atm.

$ http --headers https://portainer.docker.so

Will end up with following error:

http: error: SSLError: HTTPSConnectionPool(host='portainer.docker.so', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)'))) while doing a GET request to URL: https://portainer.docker.so/
back-2-95 commented 3 years ago

I can bypass this with:

http --verify=false --headers https://portainer.docker.so