https://github.com/wsargent/play-ws-with-letsencrypt
Example Play WS configuration using Letsencrypt as a Root CA.
https://github.com/wsargent/play-ws-with-letsencrypt
Last synced: 7 months ago
JSON representation
Example Play WS configuration using Letsencrypt as a Root CA.
- Host: GitHub
- URL: https://github.com/wsargent/play-ws-with-letsencrypt
- Owner: wsargent
- License: other
- Created: 2016-04-07T18:32:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-26T19:00:54.000Z (almost 8 years ago)
- Last Synced: 2025-03-18T19:51:51.891Z (7 months ago)
- Language: Scala
- Size: 20.5 KB
- Stars: 14
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Play WS with LetsEncrypt Certificate
This is an example Play Application that talks to https://helloworld.letsencrypt.org using the LetsEncrypt certificate.
## Running
Download and install "sbt" or "activator". Activator is basically sbt + templates, so don't worry about it if you don't have it.
Type "activator run" or "sbt run" at the prompt.
Then go to http://localhost:9000 and type in the URL that you want to check the certificates against.
## Importing
If you need to import the letsencrypt certificate to your "global" Java trust store, here's the command to do that (you may need sudo access):
```
# Create a JKS keystore that trusts the example CA, with the default password.
sudo keytool -import -v \
-alias dst-x3-root \
-file ./conf/dst-x3-root.pem \
-keystore $JAVA_HOME/jre/lib/security/cacerts \
-storepass changeit# List out the details of the store password.
keytool -list -v \
-keystore $JAVA_HOME/jre/lib/security/cacerts \
-storepass changeit | grep -i "dst"
```Please see the Play WS documentation for more details:
https://www.playframework.com/documentation/2.5.x/CertificateGeneration#configuring-a-trust-store