Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Other Java > BOOK: Beginning Cryptography with Java
Password Reminder
| FAQ | Members List | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #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


Reply With Quote
  #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

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.



Reply With Quote

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 07:41 AM.

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