Solved

keytool and private / public key

Posted on 2014-04-11
1
313 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Ransomware continues to be a growing problem for both personal and business users alike and Antivirus companies are still struggling to find a reliable way to protect you from this dangerous threat.
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now