Implementing One and Two Way SSL (Mutual Authentication) for MuleSoft Application

Introduction

In this article, we will be going to learn how to set up the one-way SSL and two-way SSL for MuleSoft applications.  In one way SSL, the client always verifies the server certificates and the server never verifies the client certificates whereas in two-way SSL client verifies the server certificates and server verifies the client certificates. Sometimes two-way SSL is also known as Mutual Authentication.

One Way SSL

As mentioned above in one way SSL only client verifies the server certificates. At the server end, there will be a Keystore that will hold the private and public certificate of the server whereas, at the client end, there will be a truststore that will hold the public certificate of the server.