{"id":1356,"date":"2017-07-15T22:27:12","date_gmt":"2017-07-16T03:27:12","guid":{"rendered":"http:\/\/lisa.rushworth.us\/?p=1356"},"modified":"2017-07-15T22:27:12","modified_gmt":"2017-07-16T03:27:12","slug":"certificate-error-on-git","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=1356","title":{"rendered":"Certificate Error On Git"},"content":{"rendered":"<p>Finally got around to switching my GitLab site over to HTTPS &#8212; made an ssl folder in \/etc\/gitlab and then placed the public\/private key pair in that folder. Files named with the external URL hostname with a key and crt suffix (gitlab.rushworth.us.crt and gitlab.rushworth.us.key in my case). Then in gitlab.rb, I changed the external_url to an https:\/\/ prefix. Voila, a secure GitLab server.<\/p>\n<p>Oops &#8211; forgot about the client. Adding the secure site as the remote, I get\u00a0&#8220;unable to get local issuer certificate&#8221; on the git client. Since I used a CA signed certificate, I just had to put the CA public key into git&#8217;s ca bundle. If you use a self-signed certificate, I believe the certificate public key would need to be used.<\/p>\n<p>Where is git&#8217;s CA bundle? Ask git:<\/p>\n<p>C:\\Program Files\\Git\\bin&gt;<strong>git config &#8211;list<\/strong><br \/>\ncore.symlinks=false<br \/>\ncore.autocrlf=true<br \/>\ncore.fscache=true<br \/>\ncolor.diff=auto<br \/>\ncolor.status=auto<br \/>\ncolor.branch=auto<br \/>\ncolor.interactive=true<br \/>\nhelp.format=html<br \/>\nrebase.autosquash=true<br \/>\n<strong>http.sslcainfo=C:\/Program Files\/Git\/mingw64\/ssl\/certs\/ca-bundle.crt<\/strong><br \/>\ndiff.astextplain.textconv=astextplain<br \/>\nfilter.lfs.clean=git-lfs clean &#8212; %f<br \/>\nfilter.lfs.smudge=git-lfs smudge &#8212; %f<br \/>\nfilter.lfs.required=true<br \/>\nfilter.lfs.process=git-lfs filter-process<br \/>\ncredential.helper=manager<br \/>\nhttp.sslverify=true<\/p>\n<p>Edit that file with something that understands Unix new line characters and paste your CA public key at the end of the file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Finally got around to switching my GitLab site over to HTTPS &#8212; made an ssl folder in \/etc\/gitlab and then placed the public\/private key pair in that folder. Files named with the external URL hostname with a key and crt suffix (gitlab.rushworth.us.crt and gitlab.rushworth.us.key in my case). Then in gitlab.rb, I changed the external_url to &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[233,232],"class_list":["post-1356","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-git","tag-gitlab"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/1356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1356"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/1356\/revisions"}],"predecessor-version":[{"id":1357,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/1356\/revisions\/1357"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}