{"id":73,"date":"2009-03-25T11:12:06","date_gmt":"2009-03-25T09:12:06","guid":{"rendered":"http:\/\/bergs.biz\/blog\/?p=73"},"modified":"2009-03-25T11:12:06","modified_gmt":"2009-03-25T09:12:06","slug":"mac-os-x-svn-client-doesnt-know-about-common-ca-certs","status":"publish","type":"post","link":"https:\/\/bergs.biz\/blog\/2009\/03\/25\/mac-os-x-svn-client-doesnt-know-about-common-ca-certs\/","title":{"rendered":"Mac OS X &#8220;svn&#8221; client doesn&#8217;t know about common CA certs"},"content":{"rendered":"<p>I recently stumbled across a problem with Mac OS X Leopard&#8217;s &#8220;svn&#8221; (Subversion) client which doesn&#8217;t know about common root CAs (such as Thawte in my case,) even tho they are in the system keychain (which you can view using &#8220;Keychain Access.&#8221;)<\/p>\n<p>It turned out that it only uses the certificates it find in <code>\/System\/Library\/OpenSSL\/certs<\/code>.<\/p>\n<p>The strange thing is that the Thawte certificate in fact is already present on Mac OS, but it&#8217;s inside <code>\/usr\/share\/curl\/curl-ca-bundle.crt<\/code>, which svn doesn&#8217;t know about. So what I did to make it work is the following:<\/p>\n<p>I extracted the certificate from <code>\/usr\/share\/curl\/curl-ca-bundle.crt<\/code> and copied it to <code>\/tmp\/thawte.pem<\/code>. I then determined the hash of the certificate as follows and created a link to the original certificate bundle (as superuser!):<\/p>\n<pre>#openssl x509 -in \/tmp\/thawte.pem -noout -hash\r\nddc328ff\r\n#ln -s \/usr\/share\/curl\/curl-ca-bundle.crt \/System\/Library\/OpenSSL\/certs\/ddc328ff.0\r\n<\/pre>\n<p>Voil\u00e0! Now I could connect to our Subversion repository without receiving a warning like the following:<\/p>\n<pre>Error validating server certificate for 'https:\/\/our.repos.de:443':\r\n- The certificate is not issued by a trusted authority. Use the\r\nfingerprint to validate the certificate manually!\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I recently stumbled across a problem with Mac OS X Leopard&#8217;s &#8220;svn&#8221; (Subversion) client which doesn&#8217;t know about common root CAs (such as Thawte in my case,) even tho they are in the system keychain (which you can view using &#8220;Keychain Access.&#8221;) It turned out that it only uses the certificates it find in \/System\/Library\/OpenSSL\/certs. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,27],"tags":[38,37,36,35],"class_list":["post-73","post","type-post","status-publish","format-standard","hentry","category-computers","category-mac-computers","tag-ca","tag-cert","tag-ssl","tag-svn"],"_links":{"self":[{"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/posts\/73","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/comments?post=73"}],"version-history":[{"count":0,"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/posts\/73\/revisions"}],"wp:attachment":[{"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/media?parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/categories?post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/tags?post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}