SSL certificate on Spring Boot app

SSL certificate on Spring Boot app

Let's say you bought yor SSL certificate, for example from, and got your zip files. What's next?

You will need Java SDK installed (you can do it on your dev machine).

We have and . And inside lafox.net_key.txt. We need to create lafox-net.jks

Step 1. Convert to PKCS-12

openssl pkcs12 -export -in -inkey lafox.net_key.txt -name lafoxnet -out lafox-net.p12

Step 2. Import PKCS-12 file format in JKS keystore

keytool -importkeystore -destkeystore lafox-net.jks -srckeystore lafox-net.p12 -srcstoretype PKCS12

Step 3. Import intermediate trust certificate

keytool -import -alias bundle -trustcacerts -file -keystore lafox-net.jks

Then copy your .jks file to your server.

Step 4. On server:

  port: 8443
    key-store: classpath:your-keystore.jks
    key-store-password: your_pass_phrase
    key-alias: your-key-alias