curlã§ã¾ãSSLã®ã¨ã©ã¼ãåºãã®ã§å¯¾å¦
$ curl -L http://xrl.us/perlbrewinstall | sh curl: (60) SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed More details here: http://curl.haxx.se/docs/sslcerts.html curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). The default bundle is named curl-ca-bundle.crt; 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.
CentOSã«perlbrewãå ¥ãããã¨ããããcurlãã¾ãSSLå¨ãã§ã¨ã©ã¼ã¡ãã»ã¼ã¸ãåºãã¾ãããã¾ããã¨ãã£ã¦ãåã¨ã¯éãç°å¢ã ããå½ç¶ã¨ããã°å½ç¶ã ãã©ã
解決ç
$ cp /etc/pki/tls/certs/ca-bundle.crt . #ããã¯ã¢ãã $ sudo curl http://curl.haxx.se/ca/cacert.pem -o /etc/pki/tls/certs/ca-bundle.crt $ curl -I https://github.com/gugod/App-perlbrew/raw/master/perlbrew-install | head -n 2 HTTP/1.1 302 Found Server: nginx/1.0.4 $ rm ca-bundle.crt #åé¡ãªããã°åé¤
ãªããcurl-ca-bundle.crtãç¡ã
$ ls /usr/share/curl/curl-ca-bundle.crt ls: /usr/share/curl/curl-ca-bundle.crt: ãã®ãããªãã¡ã¤ã«ããã£ã¬ã¯ããªã¯ããã¾ãã
Macã§ãããgithubからのcloneがSSLのエラーで出来なくなってた - kanonjiの日記ã®æ§ã«ä¼¼ããããªäºãããã¾ãããã¨ã©ã¼ã¡ãã»ã¼ã¸ã«ãcurl-ca-bundle.crt
ã¨ãããã¡ã¤ã«åãè¦ãããã§ããããªããä¸è¨ã®å ´æã«ã¯ããã¾ããã§ããã
ãã¨ãMacã®ä¾ã ã¨ãgitã¯ã ãã ãã©curlã³ãã³ãã¯å¤§ä¸å¤«ã ã£ãã¨ããéãããã£ãããã¾ãããªãã ããã
http://curl.haxx.se/ca/Automated Conversions
We provide automated conversions - done weekly. The output CA bundle file in PEM format is available from here:
- cacert.pem (234KB)
- cacert.pem.gz (124 KB)
- cacert.pem.bz2 (124 KB)
The file contains the datestamp of the conversion.
These files do not contain the DigiNotar certificates anymore since Mozilla started marking them as untrusted and our script was updated to be aware of that marking.
ã¾ãããªããã®ã¯ä»æ¹ãç¡ãã®ã§ãããä¸åº¦èª¿ã¹ãªããã¦ãå¥ã®è§£æ±ºçãè¦ã¤ãã¾ãããcurlå ¬å¼ã«ããã®ããã«é±æ´æ°ã§æä¾ããã¦ããããã®ã§ãåè¿°ã®ã³ãã³ãã§ç·å ¥ãæ¿ããã¾ããã©ããMozillaãæä¾ãã¦ãããã®ã®ããã§ããå¼ç¨ã®æå¾ã«ãããã¾ãããã¯ã©ãã¯ããã¦ä¸æ£ãªSSL証ææ¸ãçºè¡ãã¦ããDigiNotarã®CA証ææ¸ã¯åãé¤ããã¦ã¾ãã
è£è¶³
åé ã®URLã§åããã¾ããperlbrewã®ã¤ã³ã¹ãã¼ã«ããããã¨ãã¦ã¾ãããåææã«Fedora 15ã§ããåãæé ã§perlbrewãã¤ã³ã¹ãã¼ã«ãã¦ã¦ããã£ã¡ã§ã¯ã¨ã©ã¼åºã¾ããã§ããããã®URLã¯ããªãã¤ã¬ã¯ãã§æçµçã«https://github.com/gugod/App-perlbrew/raw/master/perlbrew-install
ã«ãªãã®ã§ãgithub.comã®SSL証ææ¸ãDigiCertã®ã«ä»£ãã£ãã®ãåå ã¿ããã§ãããFedora 15ã¯DigiCertã®CA証ææ¸ãæã£ã¦ãã£ã¦ãã¨ã«ãªãã®ããªã
gitやcurlやwgetでGitHubにアクセスするとcertification errorになる原因を調べてみた - Gマイナー志向
githubã®è¨¼ææ¸ã«é¢ãã¦ã¯ããã詳ãããã