Curl | iii threetreeslight

March 1, 2014

error: SSL certificate problem: Invalid certificate chain while accessing発生時の対応

いきなりgit pushが通らない! error: SSL certificate problem: Invalid certificate chain while accessing こんなエラーで苦しめられました。 考えられる原因その1 大体悪いヤツはMavericksの友達。 curlのバージョンが上がるせいか、–certと–cacertがぶっ壊れる。 Important note for curl users on OS X Mavericks 10.9 Mavericks: curl 7.30.0 (x86_64-apple-darwin13.0) libcurl/7.30.0 SecureTransport zlib/1.2.5 Mountain Lion: curl 7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8y zlib/1.2.5 TLDR: Mavericks moves from curl 7.24.0 to 7.30.0, and now –cacert and –cert are broken. Wouldn’t this break in general for a lot of folks? I’m getting MacPorts up and running in Mavericks, in order to build newer curl and test further. ... Read more

September 26, 2013

Cent os 5.6でcurlしようとしたら怒られた。

vagrantで古いboxを立ち上げて、chefでcookingしようとしたら怒られた。 初体験。 原因 サーバーのSSL CA証明書が古いのが原因 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: 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). ... Read more