{"id":27,"date":"2005-09-12T17:16:50","date_gmt":"2005-09-12T16:16:50","guid":{"rendered":"http:\/\/www.epischel.de\/wordpress\/?p=27"},"modified":"2018-06-28T21:30:58","modified_gmt":"2018-06-28T19:30:58","slug":"jsse-10-bug-keeps-me-busy","status":"publish","type":"post","link":"https:\/\/www.epischel.de\/wordpress\/2005\/09\/jsse-10-bug-keeps-me-busy\/","title":{"rendered":"JSSE 1.0 bug keeps me busy"},"content":{"rendered":"<p>A bug in JSSE 1.0.3 keeps me busy the whole monday &#8211; ending up with migrating from JDK1.2.2 to JDK1.4.2 &#8222;out of the cold&#8220;.<\/p>\n<p>In one of my maintenance project that realize some kind of an online-shop, &#8222;we&#8220; use a third-party website for payment. Last friday afternoon they installed a new SSL-certificate. Since then, the shop couldn&#8217;t connect to that website with JSSE 1.0.3 (itself running an old setup with JDK1.2.2 and JRun &#8211; to be overhauled next month).<\/p>\n<p>Tracing revealed &#8222;issuer != subject DN&#8220; &#8211; even for JDK1.4.2 . I couldn&#8217;t figure out why. I tried to store the certificate in a keystore and cacerts but it wouldn&#8217;t work either. So I tried a workaround using a dummy trust manager. It worked for JDK1.4.2 but not for JDK1.2.2.<\/p>\n<p>In the end i figured out the server certificate had something like<br \/>\n<code>O=#0C294A3...<\/code><br \/>\nin the subject which JSSE 1.0 <a href=\"https:\/\/web.archive.org\/web\/20050324100130\/http:\/\/archives.java.sun.com\/cgi-bin\/wa?A2=ind0004&amp;L=java-security&amp;F=&amp;S=&amp;P=10771\">cannot parse<\/a>. So even without evaluating the certificate it didn&#8217;t work. I was stuck here.<\/p>\n<p>So we had no choice but to immediately upgrade to JDK1.4.2 since otherwise there was no payment possible. Luckily, it worked great! No problems so far!<\/p>\n<p>If the thirdparty had noticed us about the new certificate, I had detected the problem as early as friday afternoon. But that&#8217;s life I guess.<\/p>\n<div class=\"syndication-links\"><\/div>","protected":false},"excerpt":{"rendered":"<p>A bug in JSSE 1.0.3 keeps me busy the whole monday &#8211; ending up with migrating from JDK1.2.2 to JDK1.4.2 &#8222;out of the cold&#8220;. In one of my maintenance project that realize some kind of an online-shop, &#8222;we&#8220; use a third-party website for payment. Last friday afternoon they installed a new SSL-certificate. Since then, the&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"mf2_syndication":[],"webmentions_disabled_pings":false,"webmentions_disabled":false,"footnotes":""},"categories":[3],"tags":[120],"series":[],"class_list":["post-27","post","type-post","status-publish","format-standard","hentry","category-java","tag-java","kind-article"],"kind":false,"_links":{"self":[{"href":"https:\/\/www.epischel.de\/wordpress\/wp-json\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.epischel.de\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.epischel.de\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.epischel.de\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.epischel.de\/wordpress\/wp-json\/wp\/v2\/comments?post=27"}],"version-history":[{"count":4,"href":"https:\/\/www.epischel.de\/wordpress\/wp-json\/wp\/v2\/posts\/27\/revisions"}],"predecessor-version":[{"id":1337,"href":"https:\/\/www.epischel.de\/wordpress\/wp-json\/wp\/v2\/posts\/27\/revisions\/1337"}],"wp:attachment":[{"href":"https:\/\/www.epischel.de\/wordpress\/wp-json\/wp\/v2\/media?parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.epischel.de\/wordpress\/wp-json\/wp\/v2\/categories?post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.epischel.de\/wordpress\/wp-json\/wp\/v2\/tags?post=27"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/www.epischel.de\/wordpress\/wp-json\/wp\/v2\/series?post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}