Results 1 to 2 of 2

Thread: able to add private cert to java cacerts truststore?

  1. #1
    Join Date
    Oct 2009
    Posts
    7

    Default able to add private cert to java cacerts truststore?

    Hello,

    Is there access or the ability to add a private certificate to the java cacerts keystore? My app is http with custom authentication. And there are https web services that are called within the app. And some need private certs configured on the cacerts keystore.

    Is something like this able to be done at deploy time of the app:

    sudo keytool -import -alias realmed -keystore cacerts -file <file-Realmed_Root.cer>

    thanks,
    chad.

  2. #2
    Join Date
    Oct 2009
    Posts
    7

    Default

    figured out I can just ssh in from Elasticfox and do what I need to do. And use a the cert that was deployed with the app...

    [root@domU-12-31-39-04-51-E6 security]# echo $JAVA_HOME
    /usr/java/default
    [root@domU-12-31-39-04-51-E6 security]# cd /usr/java/default/jre/lib/security/
    [root@domU-12-31-39-04-51-E6 security]# ls
    US_export_policy.jar cacerts.original java.security local_policy.jar
    cacerts java.policy javaws.policy


    > cp cacerts cacerts.original

    [root@domU-12-31-39-03-C0-F3 security]# pwd
    /usr/java/default/jre/lib/security

    [root@domU-12-31-39-03-C0-F3 security]# keytool -list -keystore cacerts
    Enter keystore password: changeit

    Keystore type: JKS
    Keystore provider: SUN

    Your keystore contains 44 entries

    keytool -import -alias realmed -keystore cacerts -file /var/lib/tcserver-6.0.19.A-solaris-intel-node/tcServer-6.0/tomcat-6.0.19.A/webapps/ROOT/WEB-INF/classes/Realmed_Root.cer
    [root@domU-12-31-39-03-C0-F3 security]# keytool -import -alias realmed -keystore cacerts -file /var/lib/tcserver-6.0.19.A-solaris-intel-node/tcServer-6.0/tomcat-6.0.19.A/webapps/ROOT/WEB-INF/classes/Realmed_Root.cer

    [root@domU-12-31-39-04-51-E6 security]# keytool -list -keystore cacerts
    Enter keystore password: changeit

    Keystore type: JKS
    Keystore provider: SUN

    Your keystore contains 45 entries


    chad.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •