{"id":7596,"date":"2017-09-27T12:44:31","date_gmt":"2017-09-27T10:44:31","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=7596"},"modified":"2017-09-27T12:44:31","modified_gmt":"2017-09-27T10:44:31","slug":"git-sslverify-false","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2017\/09\/27\/git-sslverify-false\/","title":{"rendered":"git, https URLs, invalid SSL certificates"},"content":{"rendered":"<p>\t\t\t\tMy recent git problem looked like this:<\/p>\n<p><code>$ git clone https:\/\/git.CORP.org\/GROUP\/REPO.git<\/code><br \/>\n<code>Cloning into 'REPO'...<\/code><br \/>\n<code>fatal: unable to access 'https:\/\/git.CORP.org\/GROUP\/REPO.git\/': SSL certificate problem: unable to get local issuer certificate<\/code><\/p>\n<p>What are the available approaches?<\/p>\n<ol>\n<li>get a proper certificate and use it!<\/li>\n<li>switch off SSL verification!<\/li>\n<\/ol>\n<p>Approach (1) is certainly better than (2). But maybe you are not in a position to get (1) done. So how does (2) work?<\/p>\n<p>Read up on <em>sslVerify<\/em> here:<\/p>\n<ul>\n<li><a href=\"https:\/\/git-scm.com\/docs\/git-config\">https:\/\/git-scm.com\/docs\/git-config<\/a><\/li>\n<\/ul>\n<p>You can have a &#8220;global&#8221; \/ &#8220;fall-back&#8221; <em>sslVerify<\/em> setting, and you can also have one in a section dedicated to a unique server:<\/p>\n<p><code>; HTTP<br \/>\n[http]<br \/>\nsslVerify<br \/>\n[http \"https:\/\/weak.example.com\"]<br \/>\nsslVerify = false<br \/>\ncookieFile = \/tmp\/cookie.txt<\/code>\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My recent git problem looked like this: $ git clone https:\/\/git.CORP.org\/GROUP\/REPO.git Cloning into &#8216;REPO&#8217;&#8230; fatal: unable to access &#8216;https:\/\/git.CORP.org\/GROUP\/REPO.git\/&#8217;: SSL certificate problem: unable to get local issuer certificate What are the available approaches? get a proper certificate and use it! switch off SSL verification! Approach (1) is certainly better than (2). But maybe you are [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[783],"tags":[],"class_list":["post-7596","post","type-post","status-publish","format-standard","hentry","category-git-scm"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-1Yw","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/7596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=7596"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/7596\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=7596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=7596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=7596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}