[QFJ-234] Add documetation to kinds of SSL certs supported for SSL connectivity Created: 31/Aug/07  Updated: 06/Oct/07

Status: Open
Project: QuickFIX/J
Component/s: Documentation
Affects Version/s: 1.2.1
Fix Version/s: Future Releases

Type: Task Priority: Default
Reporter: Toli Kuznets Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

Need to add more documentation specifying the exact format of SSL certs that are necessary to be in the keystore for SSL connectivity to work.

Seems like the PKCS#12 is the format that needs to be in the keystore, but perhaps there are others.



 Comments   
Comment by Gregg Freeman [ 31/Aug/07 ]

I believe that the keystore is it's own "special" java format, and easily accepts DER encoded certificates/keys. However, PKCS#12, which is the only format that windows supports for private key encoded certificates, isn't readable by the standard java keytool utility.

The following worked for me to use a private key PKCS12 certificate:
Import the root certificate into a keystore using the java keytool utility (keytool -import -file xxxx -keystore xxxxx)
Import the intermediate certificate (if you have one) just as you did the root certificate (using the same keystore file).
For PKCS#12 certificates, the easiest thing to do is to download the jwsdwp 2.0 (as of Sept 07) and use the pkcs12import.bat utility to import the PKCS#12 certificate into the same keystore.

Make the keystore file available on the classpath.
Change the SSL settings in the session.properties to include the keystore, keystore password, and SSL setting = on.

For connections that can use a self-signed certificate, it's much easier.
Use the keytool to generate a key using the following command:
keytool -genkey -alias <anything> -keystore <keystorefilename>

Follow the prompts, change your session.properties, and make the keystore available on the classpath & you're all good.

Generated at Sat Nov 23 09:03:47 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.