Skip to content

Instantly share code, notes, and snippets.

@edinhojorge
Last active March 13, 2019 23:16
Show Gist options
  • Save edinhojorge/71eea239b7cd606e23134512aa992ee0 to your computer and use it in GitHub Desktop.
Save edinhojorge/71eea239b7cd606e23134512aa992ee0 to your computer and use it in GitHub Desktop.
Spring Boot let's encrypt ssl
cd /etc/letsencrypt/live/domain
openssl pkcs12 -export -in fullchain.pem -inkey privkey.pem -out keystore.p12 -name tomcat -CAfile chain.pem -caname root
application.properties:
server.port: 443
security.require-ssl=true
server.ssl.key-store:/etc/letsencrypt/live/domain/keystore.p12
server.ssl.key-store-password: <password-from-prev-step>
server.ssl.keyStoreType: PKCS12
server.ssl.keyAlias: tomcat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment