pod install returns fatal error: SSL certificate issue?

落爺英雄遲暮 提交于 2019-11-30 07:23:25
Aaron Brager

Github's SSL certificate looks fine from my end, but maybe you have distrusted it for some reason, or you are using a proxy. To resolve:

Using the Safari browser (not Chrome, Firefox or Opera) on Mac OS X 10.9 (Mavericks) visit https://github.com (no www.).

If an alert pops up, press the "Show Certificate" button, check "Always Trust", and then "Continue."

If no alert pops up, press the green or gray Security button by the URL:

Then make sure "Always trust" is checked on the certificate.

If this doesn't resolve your issue, try temporarily disabling any proxy servers you might be running, such as Charles.

After that, pod install should work.

Note: A portion of my answer text was copied from this answer.

Under the hood pod uses just a regular git, so disabling SSL validation for git will solve the problem:

GIT_SSL_NO_VERIFY=true pod install

If you already have installed Cocoapods then write following code in terminal

sudo gem update

My Digicert Certificate was twice in the keychain and the used one was invalid. Deleting the expired one did the job. Thanks for point me there!

when I run pod install, I encountered the problem : !] Pod::Executable clone 'https://github.com/CocoaPods/Specs.git' master

Cloning into 'master'... fatal: unable to access 'https://github.com/CocoaPods/Specs.git/': SSL certificate problem: Invalid certificate chain

And I finally resolved it by deleting expired certificates in keychains. When I open my terminal and run command pod install, it finally succeeded.

Hope It helps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!