p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Java > Other Java > BOOK: Beginning Cryptography with Java
I forgot my password Register Now
Register | FAQ | Members List | Calendar | 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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 22nd, 2007, 12:11 PM
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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old October 22nd, 2007, 05:32 PM
dgh dgh is offline
Wrox Author
Points: 356, Level: 6
Points: 356, Level: 6 Points: 356, Level: 6 Points: 356, Level: 6
Activity: 2%
Activity: 2% Activity: 2% Activity: 2%
 
Join Date: Aug 2005
Location: , , .
Posts: 113
Thanks: 0
Thanked 1 Time in 1 Post
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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 08:18 AM
CryptoAPI Private Key Dialog Box owain Pro VB.NET 2002/2003 1 November 12th, 2004 11:49 AM



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


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc