I’ve created some Spring Boot applications and I’m going to dockerise them but how do I secure them with SSL from Let’s Encrypt.
In Spring Boot, if I’m running it on a server, I just have to point my applications.properties to the certificate file and since I’m going to auto deploy them on Amazon ECS, this method can’t work.
How can I go about securing my APIs with SSL from Let’s Encrypt?
My recommendation is don’t. Leave the let’s encrypt to nginx which proxies to your spring boot app. If you really have to, simply use a self signed certificate for each microservice behind nginx (it’s cheaper than a wildcard certificate).
Personally I gave up on the linuxserver/nginx-letsencrypt image, it was just too bulky for my needs.