Configuring SSL & Certificates on OHS
Step 1: Creating a wallet
Navigate to Middleware home --> oracle_common/bin
Set JAVA_HOME
orapki wallet create -wallet path_to_keystore/wallet_name -auto_login_only
Step 2: Certification Creation
orapki wallet add -wallet path_to_keystore/wallet_name -dn "CN=External_DNS_NAME.com, OU=Unit_Name, O=Home Fragrance, L=South Deerfield, ST=MA. C=US" -keysize 2048 -validity 3650 -auto_login_only
Step 3: Display Wallet
orapki wallet display -wallet path_to_keystore/wallet_name
Step 4: Export CSR
orapki wallet export -wallet path_to_keystore/wallet_name -dn "CN=External_DNS_NAME.com, OU=Unit_Name, O=Home Fragrance, L=South Deerfield, ST=MA. C=US" -request Path_to_save_CSR/certificate.csr
Step 5:
Sent the CSR to CA to get that signed
Step 6:
Once the CA signed the certificate it will give you 4 certificate to be configured in the system
A. AddTrust.crt
B. TrustedSecure.crt
C. UserTrust.crt
D. ServerCertificate.crt
Step 7: Root and Intermediate Certificates import to trusted_cert
orapki wallet add -wallet path_to_keystore/wallet_name -trusted_cert -cert path_to_signed_certificated\AddTrust.crt -auto_login_only
orapki wallet add -wallet path_to_keystore/wallet_name -trusted_cert -cert path_to_signed_certificated\TrustedSecure.crt -auto_login_only
orapki wallet add -wallet path_to_keystore/wallet_name -trusted_cert -cert path_to_signed_certificated\USERTrust.crt -auto_login_only
orapki wallet add -wallet path_to_keystore/wallet_name -trusted_cert -cert path_to_signed_certificated\ServerCertificate.crt -auto_login_only
Step 8: Import Server certificate
orapki wallet add -wallet path_to_keystore/wallet_name -user_cert -cert path_to_signed_certificated\ServerCertificate.crt -auto_login_only
Step 9: If required you can change the port from 443 to any other port in ssl.conf file
Step 10: Set the proper keystore location path in ssl.conf
#Path to the wallet
SSLWallet "${ORACLE_INSTANCE}/config/${COMPONENT_TYPE}/${COMPONENT_NAME}/keystores/default"
Step 11: Restart OPMN Services
Comments
Post a Comment