Solved

keytool and private / public key

Posted on 2014-04-11
1
319 Views
Last Modified: 2014-04-13
Apparently I created 2 public keys with this entry

keytool -genkey -alias First_Java_Cert -keyalg RSA -keystore /home/ssl/keystore.jks -storepass passw0rd
-dname "CN=first, O=IBM, C=GB" -keypass passw0rd

keytool -genkey -alias Second_Cert -keyalg RSA -keystore /home/ssl/keystore.jks -storepass passw0rd
-dname "CN=second, O=IBM, C=GB" -keypass passw0rd

However, what I want to do is create one private key, and one public key

Could someone please post an example of this

Thanks
0
Comment
Question by:Anthony Lucia
1 Comment
 
LVL 33

Accepted Solution

by:
Dave Howe earned 500 total points
ID: 39995303
you just posted two examples :).

Both of those contain one private and one public key; you have to remember that the public and private keys are mathematically linked, so First_Java_Cert has a private key AND a self-signed certificate that contains the matching public key.

To demonstrate, lets export one of them.

Keytool IUI screen 1
Keytool IUI screen 2
following this, you should have two files, one is the cert (x509 with public key) and the other the private key.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The new Gmail Phishing Scam going around is surprising even the savviest of users with its sophisticated techniques. This attack comes as a nightmare trifecta for email filtering services; sent from a familiar contact, using authentic tone and verbi…
Here are the five steps I suggest to every sysadmin to fix the fall-out from a security breach.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question