Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > BOOK: Beginning Cryptography with Java
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning Cryptography with Java
This is the forum to discuss the Wrox book Beginning Cryptography with Java by David Hook; ISBN: 9780764596339
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Cryptography with Java section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old October 22nd, 2007, 11:11 AM
Registered User
 
Join Date: Oct 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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

  #2 (permalink)  
Old October 22nd, 2007, 04:32 PM
dgh dgh is offline
Wrox Author
Points: 864, Level: 11
Points: 864, Level: 11 Points: 864, Level: 11 Points: 864, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2005
Location: , , .
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
X509 public/private key signing and mmc ZeeKoei General .NET 1 January 23rd, 2008 03:52 AM
<bean:message key="PNR.INPUT"/> key has null value warsha_14 Struts 1 November 13th, 2006 07:26 AM
certificate c++ programmer johnmontreal C++ Programming 1 November 28th, 2005 12:04 AM
prob with certificate's public/private key shiby_chacko1@rediffmail. C# 0 April 5th, 2005 07:18 AM
CryptoAPI Private Key Dialog Box owain Pro VB.NET 2002/2003 1 November 12th, 2004 11:49 AM





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