Find and download the cert You can download a self-signed cert directly from a site quickly with: openssl s_client -connect server:443 <<<'' | openssl x509 -out /path/file Note that you should only do this in the case of a self-signed cert (as mentioned in the original question). If the cert is signed by some other CA, you can't run with the above; instead, you will ne..