Cygwinでcurlを実行して、httpsのアクセスをしようと考えています。
curlのバージョンは7.52.1 です。
アクセスしようとした先は
https://localhost/hogehoge
です。
以下のように実行しています。
cygwin
1$ curl https://localhost/hogehoge
以下のようなエラーが表示されます。
curl: (60) SSL certificate problem: self signed certificate
More details here: https://curl.haxx.se/docs/sslcerts.htmlcurl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
こちらのサイトを参考にして curl-ca-bundle.crt を更新してみました。
http://www.turbolinux.com/support/document/knowledge/866.html
/usr/share/curl/curl-ca-bundle.crt というファイルは作られ、中身もそれっぽい情報になっています。
しかし状況は改善されません。
こちらのサイトには、curlの日本語ドキュメントへのリンクがあったのですが、URLがリンク切れになっていて、正確な情報が良くわかりません。
この後どうすればhttpsでcurlが使えるのでしょうか?
-kをつかれば一応通信できるのですが、どうにも気持ち悪いのです。
宜しくお願いします。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/02/15 06:30