• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Merging the contents of 2 keystores

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using a keystore(ks1) and trust store(ts1) for connecting to a server that requires a 2 way authentication.

I am using a different keystore (ks2) and trust store(ts2) to connect to a different server which also requires 2 way authentication.

I need to merge the contents of the 2 keystores and the 2 trust stores into one keystore file(ks3) and one trust store file (ts3) so that I can set javax.net.ssl.keyStore=ks3 and javax.net.ssl.trustStore=ts3.

How can I achieve this?
 
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
use the JDK 6 version of keytool (http://java.sun.com/javase/6/docs/technotes/tools/solaris/keytool.html) with the -importkeystore option.
[ October 07, 2008: Message edited by: greg stark ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic