stonehenge icon indicating copy to clipboard operation
stonehenge copied to clipboard

mkcert generated certs don't work with CLI tools

Open back-2-95 opened this issue 4 years ago • 1 comments

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 avatar Feb 13 '21 09:02 back-2-95

I can bypass this with:

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

back-2-95 avatar Feb 13 '21 09:02 back-2-95