Professional Documents
Culture Documents
Introduction
In cryptography and computer security, a self-signed certificate is an
identity certificate that is signed by the same entity whose identity it certifies. This
term has nothing to do with the identity of the person or organization that actually
performed the signing procedure. In technical terms a self-signed certificate is one
signed with its own private key.
Source : https://en.wikipedia.org/wiki/Self-signed_certificate
Department/Office
Information
Application Systems Management Department
RevisionHistory
Date
August 12,
2015
Versio
n
1.0
Description
Author
Dubene Levy S.
Pulumbarit
Generate key
Using keytool bundled in Java development kit (jdk).
1. Open command line
2. Enter command, keytool -genkey -alias mysample -keystore
keystore.jks storepass changeit ext san=ip:10.2.69.69,dns:mysample
3. Answer the following questions
a. CN Common Name
b. OU Organizational Unit
c. O Organization
d. L Locality
e. ST State
f. C Country
Parameters:
-alias <alias>
-keyalg <keyalg>
-keysize <keysize>
-ext <value>
II.
keystore password
Export certificate
1. Open command line
2. Enter command, keytool exportcert file mycert.cert -alias mysample
-keystore keystore.jks storepass changeit
Parameters:
-file <filename>
Import certificate
1. Open command line
2. Enter command, keytool importcert file mycert.cert -alias mysample
-keystore keystore.jks storepass changeit
3. Answer the prompt
Parameters:
-file <filename>
IV.
Note:
* Glassfish Application Server was used in the example
* http-listener2 responsible for listening for https request