Last active
March 13, 2019 23:16
-
-
Save edinhojorge/71eea239b7cd606e23134512aa992ee0 to your computer and use it in GitHub Desktop.
Spring Boot let's encrypt ssl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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