githubããã®cloneãSSLã®ã¨ã©ã¼ã§åºæ¥ãªããªã£ã¦ã
$ git clone https://github.com/maimuzo/android_utils.git Cloning into android_utils... error: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/maimuzo/android_utils.git/info/refs fatal: HTTP request failed
ãªãããä¹
ãã¶ãã«githubããcloneãããã¨ãããããããªã¨ã©ã¼ãåºã¦ãã¾ãã¾ãããSSLã®ã¨ã©ã¼ã¨ããã¨MacPortsのcurlがSSLのエラーを出すトラブルが直った - kanonjiの日記ãé ãéãããã§ããããã®curlã®ä»¶ã¯è§£æ±ºãã¦ãããgit
ã¯MacPortsããã®ãããªããã§ãåå ã¯å¥ã«ããããã
解決ç
% sudo chmod 666 /usr/share/curl/curl-ca-bundle.crt % sudo cat DigiCertHighAssuranceEVRootCA.crt >> /usr/share/curl/curl-ca-bundle.crt % sudo chmod 644 /usr/share/curl/curl-ca-bundle.crtまたGithub からcloneするときにSSLエラーが出たので、DigiCertのSSL証明書を追加して解決 - Goodpic
åå ãå«ãã¦è§£æ±ºçãç´¹ä»ãã¦ãã¨ã³ããªã¼ããã£ãã®ã§ããã£ãããã®ã¾ã¾ã
æ°ã«ãªãç¹
ãã£ã¦ãäºã¯ãcurl
ã«CAã®è¨¼ææ¸ãç»é²*1ãã¦ããããªã®ã§ãcurl
ã§https://github.comã«éä¿¡ãããã¨ã©ã¼ã«ãªãããããªãããªã¨æã£ããã§ããããããããããããªãæ§åã
$ curl -LO https://github.com/maimuzo/android_utils.git % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 18001 100 18001 0 0 6118 0 0:00:02 0:00:02 --:--:-- 6586
CA証ææ¸ãç»é²ããåã§ããä¸è¨ã³ãã³ãã¯åãã¾ããã
$ GIT_SSL_NO_VERIFY=true git clone https://github.com/maimuzo/android_utils.git
ä»åã®ã¨ã©ã¼ã¯ãåé¿çã¨ãã¦ããããã®ãããããããGIT_SSL_NO_VERIFY
ã使ãå ´åãfetchã§ãpullã§ãpushã§ããéä¿¡ããéã¯æ¯åGIT_SSL_NO_VERIFY=true
ãä»ããå¿
è¦ããã£ã¦ãæ£ç´ããã©ãã§ãã
ãã ããã®ç°å¢å¤æ°*2ã®ååãããgitã®ãã®ã§ãSSLã®æ¤è¨¼ããããã©ããã£ã¦æããªã®ã§ãcurl
ã³ãã³ãã¨ãã¦ä½¿ãéã¯ãããã©ã«ãã§æ¤è¨¼ããªãã£ã¦äºãªã®ãããã¾ãããåããã¾ããã
*1:ä¾ãã°Firefoxã«CA証ææ¸ãç»é²ããã¦ãªãCAãçºè¡ãã証ææ¸ã使ã£ã¦ãããµã¤ãã§ã¯ãå®å ¨ã§ãªãã¨è¦åãåºãããã©ã¦ã¶ã®å ´åããã¾ãã¦ã¼ã¶ã¼ãCA証ææ¸ã追å ããæ©ä¼ã¯ãªãã¨ããããã©ã
*2:ç°å¢å¤æ°ãããªãã£ã¦ãªãã ã£ãï¼ã·ã§ã«å¤æ°ï¼ã³ãã³ãå¤æ°ï¼