aspose file tools*
The moose likes Security and the fly likes keytool and self signing certificate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "keytool and self signing certificate" Watch "keytool and self signing certificate" New topic
Author

keytool and self signing certificate

Sagar Kar
Greenhorn

Joined: Sep 03, 2004
Posts: 25
I found the following information from the sun site http://java.sun.com/j2se/1.3/docs/tooldocs/win32/keytool.html#genkeyCmd


When we use the -genkey argument the keytool "generates a key pair (a public key and associated private key). Wraps the public key into an X.509 v1 self-signed certificate, which is stored as a single-element certificate chain".

When we use the -selfcert argument the keytool "generates an X.509 v1 self-signed certificate, using keystore information including the private key and public key associated with alias".

If -genkey generates a self signed certificate what does -selfcert do?
I can't understand what actually happens between -genkey and -selfcert.
What does self sign mean in both the case?


Warm regards,<br />Sagar Kar.<br />SCJP 1.4, SCBCD 1.3
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8713
    
    6

Please do not post the same question multiple times. Cross-posting can lead to confusion and duplication of effort.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: keytool and self signing certificate
 
Similar Threads
Custom keystores and certificates
java policies
keytool and self signing certificate
Storing Keys in KeyStore
Simple way to discourage modification of shipped jars?