Just Sharing Knowledge on Robotics, Electronics and Programming

Tuesday, April 23, 2019

How To Install Let’s Encrypt on Ubuntu and Export Jetty Keystore

Step 1 Install Letencryptt:
sudo apt-get install letsencrypt

step 2. download Certbot

sudo wget https://dl.eff.org/certbot-auto -O /usr/sbin/certbot-auto sudo chmod a+x /usr/sbin/certbot-auto

step 3. SSL certificate

sudo certbot-auto certonly --standalone -d example.com  -d www.example.com
# the "auth" aka "certonly" subcommand
# convert certificate chain + private key to the PKCS#12 file format
openssl pkcs12 -export -out keystore.pkcs12 -in fullchain.pem -inkey privkey.pem
# convert PKCS#12 file into Java keystore format
keytool -importkeystore -srckeystore keystore.pkcs12 -srcstoretype PKCS12 -destkeystore keystore.jks
# don't need the PKCS#12 file anymore
rm keystore.pkcs12
# Now use "keystore.jks" as keystore in jetty with the keystore password you specfied when you ran
# the "keytool" command
# input: fullchain.pem and privkey.pem as generated by the "letsencrypt-auto" script when run with


Post a Comment