Execute mTLS Calls Using Java

Supposing we have an NGINX instance secured using SSL and mTLS. If you are using Java interacting with a service secured with mTLS, it requires some changes on your codebase. In this tutorial, we shall enable our Java application to use mTLS using different clients.

To get started fast, we can use an existing example of adding mTLS to an NGINX instance. Our java mTLS configuration will use the certificates and keys used to add mTLS to an NGINX.