Create a certificate with all needed specifications for organisation

Document ID : KB000012943
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

How to create new certificate with all needed specifications for an organisation

Organization: organizationName

Organization Unit: organizationUnit 

Locality:  localityName

State:  stateName 

Country: country 

Environment:
WCC 11.4 on LINUX/UNIX
Answer:

To create a certificate with all needed specifications for the organisation, 

you need to specify the following option at in -dname parameter of keytool command

CN=commonName 

OU=organizationUnit 

O=organizationName 

L=localityName 

S=stateName 

C=country 

Exemple:  to create the certificate for an organisation use the following command

$CA_WCC_INSTALL_LOCATION/jre/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore $CA_WCC_INSTALL_LOCATION/data/config/.keystore -storepass changeit -keypass changeit -keysize 2048 -dname "cn=hostname, o=Organization, ou=Organization Unit, c=Country, s=State, l=Locality" -validity 366 

Additional Information:

Fore more detail about keytool tool , see the following link:

http://docs.oracle.com/javase/7/docs/technotes/tools/solaris/keytool.html