Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to import certificates from one JVM to another JVM?

928518Jul 1 2015 — edited Jul 31 2015

hi all,

i am migrating my web application from Server1 (Tomcat 5 and Java 1.5) to Server2 (Tomcat 7 wand Java 1.6).

In my web application, I have multiple adapters (web clients) that are connecting to external web services, https interfaces, sftp servers etc.

In order to connect with all these external interfaces, i have installed multiple certificates in my JRE keystore on Server1.

Now since the application is going to be migrated to Server2, i need to know if there is any way I can import all the existing certificates from Server1 JRE to Server2 JRE?

Since the application has been running on Server1 for a long time, I am not sure, what exactly is a complete list of certificates that I need to install on my Server2 JRE.

So i am kind of looking how can i generate the keystore file with certificates from the existing server1 JRE and then import it into Server2 JRE.

Does this command provide a list of all the installed certificates on my Server1 JRE?

server1:/webdienste/java/jdk/xxx/current/jre/lib/security> sudo /webdienste/java/jdk/xxx/current/bin/keytool -list -v -keystore cacerts | grep Eigner

The other solution i can think of is to manually download/save all the certificates by opening all the URLs in the browser and then import the .pfx files through keytool into my Server2 JRE.

Any idea which one is more practical.

thanks.     

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 28 2015
Added on Jul 1 2015
5 comments
3,583 views