Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.68 KB

File metadata and controls

52 lines (34 loc) · 1.68 KB

Create a Spring Boot mTLS client-side application

README.md

Prerequisites

This example assumes you have previously completed the following examples:

  1. Create an Azure Resource Group
  2. Create an Azure Key Vault
  3. Create a self-signed certificate
  4. Create a 'read-only' Service Principal
  5. Create an access policy
  6. Create a Spring Boot mTLS server-side application

Build the example

To build the JAR file use the following Maven command line.

  mvn package

Run example

To run the example locally use the following Maven command line.

  mvn spring-boot:run

You can verify the application works by using your browser and going to http://localhost:8080/hello

It should show you the following:

Hello mTLS

Cleanup

Do NOT forget to remove the resources once you are done running the example.

Reference material

  1. Azure Key Vault Certificates Spring Boot starter
  2. Maven
  3. Spring Boot Maven Plugin
  4. Spring Boot