<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sarel, a Pragmatic Programmer &#187; Java</title>
	<atom:link href="http://blog.botha.us/sarel/category/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.botha.us/sarel</link>
	<description></description>
	<lastBuildDate>Thu, 14 Jan 2021 12:46:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>Java applet fails to load in Firefox</title>
		<link>http://blog.botha.us/sarel/java-applet-fails-to-load-in-firefox/</link>
		<comments>http://blog.botha.us/sarel/java-applet-fails-to-load-in-firefox/#comments</comments>
		<pubDate>Mon, 14 Jan 2013 15:38:32 +0000</pubDate>
		<dc:creator><![CDATA[sarel]]></dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://blog.botha.us/sarel/?p=113</guid>
		<description><![CDATA[Since version 18 Firefox now disables older versions of the Java plugin and the user has to click on the applet or the red brick icon in the address bar, then click Activate to make the plugin load. This is a good thing, but it can be annoying. Even though you may have the latest [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Since version 18 Firefox now disables older versions of the Java plugin and the user has to click on the applet or the red brick icon in the address bar, then click Activate to make the plugin load. This is a good thing, but it can be annoying. Even though you may have the latest version of Java installed there may still be an old Java plugin lying around making your browser insecure and causing Firefox to block Java from loading every time.</p>
<p>I found this excellent article on Mikes Musings regarding the Firefox plugin loading mechanism: <a href="http://mike.kaply.com/2012/02/16/how-firefox-loads-plugins/">http://mike.kaply.com/2012/02/16/how-firefox-loads-plugins/</a></p>
<p>Using that information I discovered that JavaFX contained an old NPAPI plugin which was causing this.</p>
<p>These are the registry paths I found that Firefox uses to determine what plugins to load:</p>
<p>HKEY_CURRENT_USER\Software\MozillaPlugins<br />
HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins<br />
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins</p>
<p>After uninstalling JavaFX Firefox loads the Java applet without prompting.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.botha.us/sarel/java-applet-fails-to-load-in-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java Code Signing Cert as Authenticode Cert</title>
		<link>http://blog.botha.us/sarel/java-code-signing-cert-as-authenticode-cert/</link>
		<comments>http://blog.botha.us/sarel/java-code-signing-cert-as-authenticode-cert/#comments</comments>
		<pubDate>Fri, 09 May 2008 19:24:11 +0000</pubDate>
		<dc:creator><![CDATA[sarel]]></dc:creator>
				<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[authenticode]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[globalsign]]></category>
		<category><![CDATA[sign]]></category>

		<guid isPermaLink="false">http://blog.botha.us/sarel/?p=21</guid>
		<description><![CDATA[Hasn&#8217;t it always just seemed wrong that you have to buy both an Authenticode and a Java Code Signing certificate? That might just be a thing of the past. There&#8217;s a very thorough guide here that describes how you can convert a Java cert to an Authenticode cert. http://tjworld.net/software/codesigning/ The link to download the needed [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Hasn&#8217;t it always just seemed wrong that you have to buy both an Authenticode and a Java Code Signing certificate? That might just be a thing of the past.</p>
<p>There&#8217;s a very thorough guide here that describes how you can convert a Java cert to an Authenticode cert.</p>
<p><a title="http://tjworld.net/software/codesigning/" href="http://tjworld.net/software/codesigning/" target="_blank">http://tjworld.net/software/codesigning/</a></p>
<p>The link to download the needed tools is broken, but I found it somewhere else:</p>
<p><a title="http://www.myssl.cn/download/jks2pfx.zip" href="http://www.myssl.cn/download/jks2pfx.zip" target="_blank">http://www.myssl.cn/download/jks2pfx.zip</a></p>
<p>This procedure worked for me and produced an Authentocde certificate, but my certificate was not immediately trusted by Windows. My certificate was obtained from GlobalSign and they used an intermediary certificate to sign this certificate. To make Windows trust this certificate the intermediary certificate must be included in the PKCS12 file as well.</p>
<p>To do this you can download a copy of the intermediary certificate from here: <a title="http://secure.globalsign.net/cacert/sureobject.crt" href="http://secure.globalsign.net/cacert/sureobject.crt" target="_blank">http://secure.globalsign.net/cacert/sureobject.crt</a></p>
<p>The file is in the binary form, so convert it to X509 like this: openssl x509 -inform der -in sureobject.crt -out sureobject.pem</p>
<p>Then edit the jks2pfx.bat file and on the line that starts &#8220;openssl pkcs12&#8243; add to the end: -certfile sureobject.pem</p>
<p>Run jks2pfx.bat again with the necessary arguments, enter the password you want to use, then open the PFX file to import the certificate and private key into your Windows certificate store.</p>
<p>You should be ready to start signing.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.botha.us/sarel/java-code-signing-cert-as-authenticode-cert/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
