curlでSSLの警告が出た場合
curl: (60) SSL: no alternative certificate subject name matches target host name 'example.com'
回避するには -k を追加して実行
curl -k https://example.com
-k の説明は
-k, --insecure Allow insecure server connections when using SSL
詳しい説明は
% man curl
-k, --insecure
(TLS) By default, every SSL connection curl makes is verified to be secure. This option allows curl to proceed and operate even for server connections otherwise considered insecure.
The server connection is verified by making sure the server's certificate contains the right name and verifies successfully using the cert store.
See this online resource for further details:
https://curl.haxx.se/docs/sslcerts.html
See also --proxy-insecure and --cacert.