Convert the Java JKS key-store to Microsoft PFX format

Copyright © 2004, 2005 TJ

The GNU General Public License version 2 or later applies to my ExportPrvKey.class. See http://www.gnu.org/licenses/gpl.html

Here's how to get and use a code-signing Thawte digital certificate to sign your Java JAR and Microsoft CAB, EXE, DLL, VBscript, etc. code, to create trusted applets for downloading over the Internet, and to convert the Java JKS key-store to P12/Microsoft PFX (Personal Information Exchange) format to share the same certificate with Java JAR files and Microsoft CAB files.

This allows software authors to increase the range of activities the Java Security Manager will permit.


Contents

Generate a Certificate Signing Request

keytool -certreq -keystore CodeSigning.jks -file csr.txt -alias CodeSigning

Run keytool -certreq command

You've now got a new file csr.txt in the CodeSigning folder.

Windows Explorer folder view of csr.txt

Load into Notepad by double-clicking the filename csr.txt, highlight all the text and copy to the clipboard by pressing Ctrl+C, or choosing the Edit menu, then Copy.

Notepad editing csr.txt

Paste the CSR into the Thawte form by right-clicking in the text box and choosing Paste.

Thawte Certificate Request step 7

Press the next button.

Thawte Certificate Request step 8

If you're happy with the summary, press the finish button.

Thawte Certificate Request step 9

Now you wait for the certificate to be issued. This usually only takes 5 minutes or so. You can check on progress by choosing view certificate status.

Thawte Pending Certificate Requests

If you have any comments or simply find this guide a useful time-saver I'd welcome hearing from you. You can email me at codesigning@tjworld.net.

© Copyright 2004, 2005 TJ. You are welcome to link directly to this article and make a non-public personal copy (not redistributed or republished). The article must remain in XHTML form (mustn't be converted to proprietary formats such as PDF or DOC). If you would like to include it in a commercial service (e.g. a subscription or advertiser-supported web site) please ask.