p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning Cryptography with Java (http://p2p.wrox.com/forumdisplay.php?f=187)
-   -   Private Key with Associated Certificate (http://p2p.wrox.com/showthread.php?t=63109)

bdblhk3 October 22nd, 2007 11:11 AM

Private Key with Associated Certificate
 
I used the Unix 'keytool' to generate a private key with associated certificate in my Unix Server A. Then I wrote a SSL Java Server program in that server A. I brought up the server program using the private key that I just generated, it is find. Then I exported the certificate without the private key and imported as the trusted certificate in my pc. I wrote a SSL Java client program on my pc named B. I brought up my client program connecting the ssl server in the Unix server. It worked fine. Now my client can send and receive messages from the server under ssl tcp connection.

Now my question is how can I export the private key with the associate certificate and import to the other machine, it could be Unix, Linux, PC, or IBM Mainframe so I can bring up my server program using the same private key in any of the machine and my client program can communicate with my server program.

If anyone has the steps or the sample programs showing me how to perform the export and import the private key with associate certificate, It would be great and I appreciate very much . Thanks

Ha


dgh October 22nd, 2007 04:32 PM

If it is a single private key the best thing to do is to convert the keystore into a PKCS12 file or regenerate it as a PKCS12 file using the keytool.

Regards,

David



All times are GMT -4. The time now is 08:33 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.