How can I set up a letsencrypt SSL certificate and use it in a Spring Boot application?

前端 未结 7 2074
长情又很酷
长情又很酷 2020-12-07 09:14

I\'m new to securing a server so I don\'t really know much about this but I need to get my Spring Boot Application that is running on a Digital Ocean Droplet to use HTTPS. <

7条回答
  •  醉酒成梦
    2020-12-07 10:08

    letsencrypt-tomcat queries and refreshes certs via Let's encrypt at runtime (no restarts needed).
    It works with standalone and embedded Tomcat as well as Spring Boot.

    It's packaged into a Docker image, allowing for easy reuse. The image contains:

    • dehydrated to manage certs via Let’s Encrypt,
    • tomcat-reloading-connector for hot reloading certs at runtime after renewal,
    • an init system (dumb-init) for properly handling tomcat and dehydrated processes,
    • an entrypoint script that starts up tomcat and dehydrated as well as
    • a pre-compiled version of Apache Portable Runtime (APR) and JNI wrappers for APR used by Tomcat (libtcnative), so tomcat delivers the best TLS performance possible.

    Read this blog post to learn how to use it with your application and more about the technical details.

提交回复
热议问题