I discussed about  SSL basics in WebLogic like Certifying Authority and Certificate , configuring SSL for OID and SSL for OVD  using Graphical User Interface (GUI) using Fusion Middleware Control (EM).

What if EM doesn’t work or you did not select Enterprise Manager during WebLogic Domain Creation?


You are not allowed to use GUI like EM to configure/manage SSL in Oracle.

If you are in situation like me where GUI is not an option and only Command Line Interface (CLI) is allowed then you can use utility orapki to manage certificates in Wallet for OID.

Similar to keystore in WebLogic, you have wallet to store SSL certificate (both Identity & Trust certificate) for Oracle components managed by OPMN like Oracle Internet Directory (OID), Oracle HTTP Server (OHS), and Oracle Virtual Directory (OVD).

In this post I am going to show how to create Wallet, create Certificate Signing Request (CSR) and importing Certificates (Identity and Trust).

First terminology

  • Wallet: is store to keep certificates both Identity (to which certificate is issued) like OID/OHS/OVD server and Trust (Certificate of Certifying Authority that issued the certificate). Wallet can be protected by password (use option -pwd) or allowed auto login only (use option -auto_login_only)
  • Identity Certificate : is the certificate of the Server that client (Web Client for OHS and LDAP client for OID/OVD) connects to. – When you import Identity Certificate in to wallet, you must use option -user_cert
  • Trust Certificate : is the certificate of the Certifying Authority (CA) that issued Identity Certificate. There could be multiple Certifying Authority in chain that issued the certificate. When you import Trust Certificate in to wallet, you must use option -trusted_cert . If there are multiple CAs in certificate chain then you must import all CA’s certificates with option -trusted_cert
  • orapki : is utility to manage (create, import, export) certificate and wallet. orapki is under MIDDLEWARE_HOME/ oracle_common/ bin


1. To create wallet
orapki wallet create -wallet [wallet_location]

orapki wallet create -wallet /u01/app/oracle/admin/oid_inst1/OID/admin/myWalletDir

2. To Display certificates in wallet

orapki wallet display -wallet [wallet_location]

orapki wallet display -wallet /u01/app/oracle/admin/oid_inst1/OID/admin/myWalletDir


  • Requested Certificates” contains details of Certificate Signing Requests that are not yet signed 
  • User Certificates” contains signed certificate for identity aka Identity Certificate 
  • Trusted Certificates”  contains certificates of Signing Authority (aka Certifying Authority – CA) . These certificate are also called as Trust Certificate or Root/Intermediate Certificate
  • By default when you create wallet , you get four CA certificate

3. To add a trusted certificate to an Oracle wallet:

orapki wallet add -wallet wallet_location -cert certificate_location -trusted_cert -auto_login_only
4. To add a user certificate to an Oracle wallet:

orapki wallet add -wallet wallet_location -cert certificate_location -user_cert -auto_login_only



Note: In above wallet, you can see 1 User Certificate (Identity Certificate ) and 6 Trusted Certificate (Certifying Authority certificate)