Importing a certificate into keystore.p12
After generating a new certificate and getting it signed by a Certificate Authority (CA), you must import the certificate into the keystore.p12 file. The certificate must be in printable DER format (file extension .pem) or in binary DER format (file extensions .cer, .crt, or .der). The format to use when you import a certificate into keystore.p12 depends on what format of signed certificate is available to you.
The following topics provide information and instructions for importing a certificate into the keystore:
To import a certificate in Microsoft Windows
- Copy the signed certificate file into the BMC Atrium Single Sign-On server conf directory:
<installationDirectory>\BMC Software\AtriumSSO\tomcat\conf - On the command line, change the working directory to
<installationDirectory>\BMC Software\AtriumSSO\tomcat\conf. - Modify the environment to use the Java Development Kit (JDK) that is installed with BMC Atrium Single Sign-On:
set PATH=<installationDirectory>\jdk\bin;%PATH% Run the keytool utility with the following parameters:
keytool -importcert -keystore %CATALINA_HOME%\conf\keystore.p12 -trustcacerts -alias tomcat -keypass <keystore_password> -storepass <keystore_password> -file <certificatefilename> -storetype PKCS12 -providername JsafeJCE -keyalg RSA- <keystore_password> — The password used to authenticate the keystore certificate. The default keystore password is internal4bmc.
<certificatefilename> — The name of the certificate file; for example, cert_name.cer
- Stop and restart the BMC Atrium Single Sign-On server.
To import a certificate in UNIX
- Copy the signed certificate file into the BMC Atrium Single Sign-On server conf directory:
<installationDirectory>/BMC Software/AtriumSSO/tomcat/conf - On the command line, change the working directory to
<installationDirectory>/BMC Software/AtriumSSO/tomcat/conf. - Modify the environment to use the JDK installed with BMC Atrium Single Sign-On:
PATH=<installationDirectory>/jdk/bin:$PATH;export PATH Run the keytool utility with the following parameters:
keytool -importcert -keystore $CATALINA_HOME/conf/keystore.p12 -trustcacerts -alias tomcat -keypass <keystore_password> -storepass <keystore_password> -file <certificatefilename> -storetype PKCS12 -providername JsafeJCE -keyalg RSA- <keystore_password> — The password used to authenticate the keystore certificate. The default keystore password is internal4bmc.
<certificatefilename> — The name of the certificate file; for example, cert_name.cer
- Stop and restart the BMC Atrium Single Sign-On server.