My Oracle Support Banner

Configuring SSL for Client Authentication and Encryption With Self Signed Certificates On Both Ends Using orapki (Doc ID 401251.1)

Last updated on FEBRUARY 05, 2024

Applies to:

Advanced Networking Option - Version to [Release 10.2 to 12.1]
Oracle Net Services - Version to [Release 12.2]
Oracle Database - Enterprise Edition - Version and later
Information in this document applies to any platform.


The note has been written using Oracle Enterprise Linux 4.0 and 5.0,  and Oracle  RDBMS versions,, and although the steps are generic and should apply to all platforms.

In this note the client and server are separate machines to help clarify which configuration is server side and which is client side. This connection authenticates both the server and the client.

One can set up the SSL authentication as described in this note only when testing this authentication method or when the number of  the users authenticated via SSL is not large. The rationale is that in this note the client signs it's own certificate and we import the root certificate of the client into the wallet of the server. As such for a large number of different users we will end up with too many client root certificates being imported into the wallet of the server.

This note uses the Oracle command line tool orapki to generate self signed certificates and to manipulate the wallets. Some of the steps could be done using Oracle Wallet Manager but this note will focus on using orapki.

Oracle's primary reference for SSL is the Oracle Advanced Security Administrator's Guide. This guide describes Oracle's SSL solution and configuration in greater detail, see Configuring Secure Sockets Layer Authentication. In versions 12c and later, you can find these details in the Security Guide.


This note is intended for use by Database Administrators.



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.