Service Mesh: Configure client mTLS

In this tutorial, configure a Oracle Cloud Infrastructure (OCI) Service Mesh ingress gateway to support mTLS encrypted connections from a web browser.

Key tasks include how to:

  • Issue the required certificates for mTLS.
  • Issue the required certificate authority bundle.
  • Configure mTLS for your ingress gateway.
  • Configure your browser for mTLS support.
  • Connect from your browser to the BookInfo application over a secure connection.
Figure 1. BookInfo Application on Service Mesh
A diagram of the components needed to run a Spring Boot app on Oracle Cloud Infrastructure Kubernetes Engine
Note

The gray rectangular boxes in the picture represent virtual deployments in the application. The named virtual deployments include: Product Page, Details, Reviews v1 to v3, and Ratings.

For additional information, see:

1. Prepare

Prepare your environment to create and deploy your application.

2. Create and Configure Certificates for your Ingress Gateway

Create and configure the certificates needed for your ingress gateway.

Note

The steps assume you have a Certificate Authority called mesh-demo-ca for the Mesh. The Certificate Authority issues certificates for the mTLS between ingress gateway and browser.

3. Install the Browser Client Certificate

Install the browser client certificate you created.

4. Add Client Certificate to a Java Application

Add your client certificate to a Java HTTP client application. To allow your Java application to connect to your mesh through mTLS, add the following Java code snippet examples.

What's Next

Congratulations! You have successfully configured ingress gateway client mTLS for your Bookinfo app Service Mesh.

To explore more information about development with Oracle products, check out these sites: