GarroTech

Letsencrypt Https certificate on Spring Boot 2 and Nginx

06/09/2019 20:04

Getting the certificate

In this article, Assuming you already have Certbot managing https certificate for you (if not, you can start by following one of the tutorials in resources). This means you can find a path similar to this in your server:

/etc/letsencrypt/live/mydomain.com

Our Spring Boot application expects PKCS12. We need to create a keystore. Doing that you will be asked to provide a password. This password needs to be provided to your Spring application as well (Find a secure way to do it. We are using application properties in this example for simplicity).