G
gk
Hi, i am reading JSSE tutorial.
in the tutorial i find the following code snippet which i dont
understand. will you please help me to understand it ? wll you please
answer my questions ?
here is the code
Creating a New Key Pair and Self-Signed Certificate Using keytool
=================================================
Enter keystore password: password
What is your first and last name?
[Unknown]: Duke
What is the name of your organizational unit?
[Unknown]: JavaSoft
What is the name of your organization?
[Unknown]: Sun
What is the name of your City or Locality?
[Unknown]: Cupertino
What is the name of your State or Province?
[Unknown]: CA
What is the two-letter country code for this unit?
[Unknown]: US
Is <CN=Duke, OU=JavaSoft, O=Sun, L=Cupertino, ST=CA, C=US> correct?
[no]: yes
i am getting difficulty to understand this code. here are my questions
as follows...
Question 1 :
does this code creating a file ? a certificate file ? where does it
gets stored ?
confused ..... what it is doing ?
Question 2 :
it says "Creating a New Key Pair and Self-Signed Certificate Using
keytool".....i want to see the created certificated......it must be
stored somewhere in my harddisk.....correct ? where do i get this file
? whats the name of the certificate ? please tell me the name of the
certificate, so that i can search my hard disk and want to find that
file and want to see that file.
Question 3 : they say "Creating a New Key Pair and Self-Signed
Certificate Using keytool".....what does it mean by "Key Pair and
Self-Signed Certificate"......does it mean this program creates two
keys e.g in this example "alias" and ".keystore".....is it correct ?
and what about this "Self-Signed Certificate"....i dont see any created
certificate.
in the tutorial i find the following code snippet which i dont
understand. will you please help me to understand it ? wll you please
answer my questions ?
here is the code
Creating a New Key Pair and Self-Signed Certificate Using keytool
=================================================
keytool -genkey -alias alias -keystore .keystore
Enter keystore password: password
What is your first and last name?
[Unknown]: Duke
What is the name of your organizational unit?
[Unknown]: JavaSoft
What is the name of your organization?
[Unknown]: Sun
What is the name of your City or Locality?
[Unknown]: Cupertino
What is the name of your State or Province?
[Unknown]: CA
What is the two-letter country code for this unit?
[Unknown]: US
Is <CN=Duke, OU=JavaSoft, O=Sun, L=Cupertino, ST=CA, C=US> correct?
[no]: yes
i am getting difficulty to understand this code. here are my questions
as follows...
Question 1 :
does this code creating a file ? a certificate file ? where does it
gets stored ?
confused ..... what it is doing ?
Question 2 :
it says "Creating a New Key Pair and Self-Signed Certificate Using
keytool".....i want to see the created certificated......it must be
stored somewhere in my harddisk.....correct ? where do i get this file
? whats the name of the certificate ? please tell me the name of the
certificate, so that i can search my hard disk and want to find that
file and want to see that file.
Question 3 : they say "Creating a New Key Pair and Self-Signed
Certificate Using keytool".....what does it mean by "Key Pair and
Self-Signed Certificate"......does it mean this program creates two
keys e.g in this example "alias" and ".keystore".....is it correct ?
and what about this "Self-Signed Certificate"....i dont see any created
certificate.