{"id":4321,"date":"2021-04-02T16:12:09","date_gmt":"2021-04-02T08:12:09","guid":{"rendered":"https:\/\/www.ookangzheng.com\/?p=4321"},"modified":"2021-04-12T10:43:51","modified_gmt":"2021-04-12T02:43:51","slug":"fix-ssl-certificate-problem-unable-to-get-local-issuer-certificate","status":"publish","type":"post","link":"https:\/\/www.ookangzheng.com\/fix-ssl-certificate-problem-unable-to-get-local-issuer-certificate\/","title":{"rendered":"Fix SSL certificate problem: unable to get local issuer certificate"},"content":{"rendered":"\n
Operating system: Mac OSX Big Sur 11.2<\/p>\n\n\n\n
When you encountered this error For my scenario, I blocked all This error occurs when a self-signed certificate cannot be verified. <\/p>\n\n\n\n Tell git to not perform the validation of the certificate using the global option:<\/p>\n\n\n\n Please be advised disabling SSL verification globally might be considered a security risk<\/em> and should be implemented only temporarily<\/p>\n\n\n\n Photo by Markus Winkler<\/a> on Unsplash<\/a><\/p>\n","protected":false},"excerpt":{"rendered":" Operating system: Mac OSX Big Sur 11.2 When you encountered this error SSL certificate problem: unable to get local issuer…<\/p>\n","protected":false},"author":1,"featured_media":4325,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37,32],"tags":[],"class_list":["post-4321","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-technology"],"_links":{"self":[{"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/posts\/4321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/comments?post=4321"}],"version-history":[{"count":0,"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/posts\/4321\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/media\/4325"}],"wp:attachment":[{"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/media?parent=4321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/categories?post=4321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/tags?post=4321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}SSL certificate problem: unable to get local issuer certificate<\/code> means that local
git<\/code> command cannot verify SSL validity. <\/p>\n\n\n\n
ocsp.*<\/code> related domain to prevent personal privacy leaks to FAANG cooperation or provider. <\/em><\/p>\n\n\n\n
Cause<\/h2>\n\n\n\n
Workaround<\/h2>\n\n\n\n
git config --global http.sslVerify false<\/code><\/p>\n\n\n\n