Solved

keytool and private / public key

Posted on 2014-04-11
1
323 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Local User Account Group Policy 8 51
application access evidence windows 7 5 45
Connecting a New Subnet to Network 4 42
Service Specific Account vs 'Administrator' 5 41
If you thought ransomware was bad, think again! Doxware has the potential to be even more damaging.
The next five years are sure to bring developments that are just astonishing, and we will continue to try to find the balance between connectivity and security. Here are five major technological developments from the last five years and some predict…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

789 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