wget で https からのダウンロードが失敗するとき
wget で elasticsearch をダウンロードしようとしてエラーが出てダウンロード出来なかった。
ERROR: cannot verify download.elasticsearch.org's certificate, issued by '/C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU=http://certificates.godaddy.com/repository/CN=Go Daddy Secure Certification Authority/serialNumber=07969287': Self-signed certificate encountered. To connect to download.elasticsearch.org insecurely, use `--no-check-certificate'.
メッセージのまま 証明書の問題でダウンロードさせてくれないので
これまた メッセージのまま '--no-check-certificate' をつけてダウンロード実行。
% wget --no-check-certificate https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.5.tar.gz --2013-09-26 16:02:01-- https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.5.tar.gz Resolving download.elasticsearch.org (download.elasticsearch.org)... 54.243.96.119, 54.225.247.240, 2406:da00:ff00::36e1:f7f0, ... Connecting to download.elasticsearch.org (download.elasticsearch.org)|54.243.96.119|:443... connected. WARNING: cannot verify download.elasticsearch.org's certificate, issued by '/C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU=http://certificates.godaddy.com/repository/CN=Go Daddy Secure Certification Authority/serialNumber=07969287': Self-signed certificate encountered. HTTP request sent, awaiting response... 200 OK Length: 17668900 (17M) [application/x-gzip] Saving to: 'elasticsearch-0.90.5.tar.gz'
今度は上手くいきました。