问题
Since installation of Yosemite I keep getting error SSL: CA certificate set, but certificate verification is disabled. It occurs with every https url in Terminal. Can't find how to fix this, any suggestions ? thanks Frank
回答1:
For others coming here trying to figure out why they are running into this issue with Wordpress and maybe also WooCommerce and are on OS X Yosemite then you will want to follow Asaph/Cupcake's answer to "osx 10.10 Curl POST to HTTPS url gives SSLRead() error" (https://stackoverflow.com/a/26538127)
Basically the issue is cURL is using Apple's SecureTransport instead of OpenSSL. The linked to answer will walk you through testing the SSL Version and then fixing it.
One caveat I ran into is I had already installed php 5.5.21 via homebrew but my system was not using it. I unlinked 5.5.21 by doing "brew unlink php55
回答2:
I found a wrong setting in my .gitconfig
, in the [http]
section. I added sslVerify=false
and deleted the other settings in this section, and it fixed my problem.
来源:https://stackoverflow.com/questions/26710482/yosemite-ssl-ca-certificate-set-but-certificate-verification-is-disabled