Oracle Enterprise Manager
Third party SSL certificate
Configurations
1) Create New p12 file using openssl and
Create wallet using orapki and import p12 file into wallet
2) Secure OMS , upload port and agent
using created Wallet
3) Secure WLS using same Wallet
For this we have following third
party certificates two trusted certificates, one user certificate and key file
also is there any password please take that also.
DigiCertCA.crt
TrustedRoot.crt
star_techtel_lk.crt
em13c.key
First we take trusted certificate and create one file using
following command
Cat DigiCertCA.crt > cacert.crt
Cat TrustedRoot.crt >> cacert.crt
1) Create New p12 file using openssl and
Create wallet using orapki and import p12 file into wallet
a)
To create a new wallet using openssl, run the
following command to create a p12 file
openssl pkcs12 -export -in
/path/to/user.cer -inkey /path/to/private.key -certfile /path/to/trust.cer -out
openssl.p12
Ex:
openssl pkcs12 -export -in
/home/oracle/ssl_techtel/star_techtel_lk.crt -inkey
/home/oracle/ssl_techtel/em13c.key -certfile
/home/oracle/ssl_techtel/cacert.crt -out openssl.p12
Note: provide password new out put file keep it safe this
password need further steps (oracle123)
b)
Create an auto-login wallet, run the following:
$ORACLE_HOME/oracle_common/bin/orapki
wallet create -wallet /path/to/wallet -auto_login
Ex:
Cd /u01/app/oracle/middleware13.5/oracle_common/bin/
./orapki wallet create -wallet /home/oracle/newwallet -auto_login
Note: provide new password for wallet (this case I have
given oracle123) this is needed for further steps
c)
Import the p12 file into the newly created
wallet.
orapki wallet import_pkcs12
-wallet <wallet path> -pkcs12file <p12 file path>openssl.p12
Ex:
orapki wallet import_pkcs12 –wallet /home/oracle/newwallet -pkcs12file /home/oracle/wallet2/
/home/oracle/ssl_techtel/openssl.p12
This time you have to provide wallet password and openssl.p12 password whis we provided step one.
d)
Verify created wallet using orapki
./orapki wallet display -wallet /home/oracle/newwallet
2) Secure OMS , upload port and agent
using created Wallet
a) Secure EM console execute following
command in Middleware Home
./emctl secure console
-wallet /home/oracle/newwallet
b) Secure upload port
./emctl secure oms -host
em13c.techtel.lk -secure_port 4903 -wallet /home/oracle/newwallet
c) Stop and start OMS
./emctl stop oms -all
-force
./emctl start oms
d) Secure agent, go to the agent home
cd /u01/app/oracle/agent/agent_inst/bin
./emctl secure agent
Check upload is working
./emctl upload agent
Note:
You have follow section d in every host added in EM
If all the
steps are success, then you can check the EM
3)
Secure
WLS using same Wallet
1)
The custom CA certificates (root and intermediate
certificates) need to be imported into the trust store of the Agent (Chained
Agent) which is monitoring the OMS target so that it can continue to monitor
the WLS components
a.
Stop the Agent on the OMS server
cd /u01/app/oracle/agent/agent_inst/bin
./ emctl stop agent
b.
Import the custom CA certificate into Agent
./emctl secure add_trust_cert_to_jks -trust_certs_loc
/home/oracle/ssl_techtel/star_techtel_lk.crt -alias rootcacert -password
welcome
Note : you have to provide alias and password
c.
Start agent
emctl start agent
2)
Take a backup of files below from the OMS Host
<EM_INSTANCE_BASE>/em/EMGC_OMS(n)/emgc.properties
file
/u01/app/oracle/gc_inst1/em/EMGC_OMS1
<DOMAIN
HOME>/nodemanager/nodemanager.properties file
/u01/app/oracle/gc_inst1/user_projects/domains/GCDomain/nodemanager
<DOMAIN
HOME>/config/fmwconfig/components/OHS/ohs1/keystores/proxy
/u01/app/oracle/gc_inst1/user_projects/domains/GCDomain/config/fmwconfig/components/OHS/ohs1/keystores
<DOMAIN
HOME>/config/fmwconfig/components/OHS/instances/ohs1/keystores/proxy
/u01/app/oracle/gc_inst1/user_projects/domains/GCDomain/config/fmwconfig/components/OHS/instances/ohs1/keystores
<DOMAIN
HOME>/config/config.xml file
/u01/app/oracle/gc_inst1/user_projects/domains/GCDomain/config
<EM_INSTANCE_BASE>/em/EMGC_OMS(n)/embip.properties
(If exist)
/u01/app/oracle/gc_inst1/em/EMGC_OMS1
----------------No embip.properties files
3)
Stop the OMS
cd /u01/app/oracle/middleware13.5/bin
emctl stop oms
4)
Secure WLS and stop all OMS and start
./emctl secure wls -wallet /home/oracle/newwallet
./emctl stop oms -all -force
./emctl start oms
If there
are no any issue Weblogic console also getting secured successfully