Setting up Spring Boot with Lets Encrypt SSL

Kevin Kariuki
1 min readJul 2, 2020

image courtesy of javadeveloperzone.com

Install Certbot

If you are using RHEL on EC2, you can enable the optional channel by running:

$ yum -y install yum-utils
$ yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional

After doing this, you can install Certbot by running:

$ sudo yum install certbot

sudo certbot certonly -d domain_name_here_com

sudo cat /etc/letsencrypt/domain_name_here_com/*.pem > ~/fullcert.pem

openssl pkcs12 -export -out domain_name_here_com.pkcs12 -in fullchain.pem

server:
port: 443
ssl:
enabled: true
key-alias: integral
key-store: classpath:your domain_name_here_com.pkcs12
key-store-password: yourPasswordHere
key-password: yourPasswordHere
key-store-type: PKCS12

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Kevin Kariuki
Kevin Kariuki

No responses yet

Write a response