Specifying the trustStore and keyStore properties
Related Categories: Breeze, CPS, Security ColdFusion, JRun,
I've written a topic on enabling SSL and another topic which talks about debugging SSL, but what if you don't want to use the default cacerts or keystore (trustStore) files? Or, what if you have to install a new jvm for DST compliance, but don't want to share certificate stores among Java apps? What if you have a centralized file you want all of your Java apps to use to enable SSL. In these cases you can use the Java system properties to configure these files at runtime.
First understand that there are two files involved:
- trustStore: file containing certificates of remote systems (servers, clients, etc.) CF/JRun's default trustStore is the cacerts file (cf_root/runtime/jre/lib/security/cacerts or jrun_root/jre/lib/security/cacerts);
- keyStore: file containing certificates that identify the local system/server CF/JRun's default keyStore is the trustStore file (cf_root/runtime/lib/trustStore or jrun_root/lib/trustStore).
To use a different file from the defaults at runtime, add the following Java arguments:
2-Djavax.net.ssl.trustStorePassword=truststore password<br />
3-Djavax.net.ssl.keyStore=path_to_keystore<br />
4-Djavax.net.ssl.keyStorePassword=keystore password<br />
*Note: You must restart the JVM in order for these changes to take affect
Example: To configure ColdFusion to use a file (sampleCerts) other than the default cacerts certificate file, add the following line to the Java arguments in either the Java and JVM Settings screen in the CF Admin or to the java.args section of the cf_root/runtime/bin/jvm.config:



[Add Comment] [Subscribe to Comments]
When we have PKI enabled for the publishing server app and we try to
enable the CPS through contribute after connecting to our site, contribute
can not see the publishing server. If we turn off PKI it can see it. We are
using IIS to handle our client certificate requests and Tomcat to run the app
Do you have any suggestions how to get contribute to see the CPS with PKI
enabled?