Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 244595

Re: How do I export my self signed certificate from keystore?

$
0
0

Hi,


I've tried using the following command as indicated in the link you provided but I receive an error message.

 

The command I'm using is:

 

keytool - export -keystore /opt/keystore/ -alias http -file http.cer

 

Once I enter the password, the following error is shown.

 

"keytool error: java.lang.IllegalArgumentException: Alias [http] MUST be known to the key store"

 

 

 

 

The original command I used to generate the keystore for http was this:

 

keytool -keystore /opt/keystore/certificates.ks - storetype JCEKS - storepass password -validity 365 -genkey -keyalg RSA -alias http

 

 

If I try to use the following command which includes the keystore filename, I see a slightly different error.

 

keytool - export -keystore /opt/keystore/certficates.ks -alias http -file http.cer

 

The error this time is "keytool error: gnu.javax.crypto.keyring.MalformedKeyringException: incorrrect magic"


Viewing all articles
Browse latest Browse all 244595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>