Bypassing Self Signed SSL Certs with Curl

Dec 3, 2019

Working with some systems that have some self signed SSL certs for working in staging/sandbox environments and needed to test out some URLs. Naturally grabbed curl, but was getting an error.

curl: (51) SSL: no alternative certificate subject name matches target host name

Turns out the fix is easy. Just pass in the --insecure flag.

curl --insecure https://domain.com

If you enjoyed this and would like to be notified the next time I write something, you can subscribe with your choice of RSS or Email.

I promise not to spam you and you can unsubscribe at anytime.

Also, here are some other items you might like longer longer:

or go see everything in the archive.