Project contains Akka Http feature tests and apps.
For details see:
- https://doc.akka.io/docs/akka-http/current/server-side/server-https-support.html
- https://lightbend.github.io/ssl-config/CertificateGeneration.html
Also see x509 text file and directory.
Both JKS and PKCS12 keystore formats have been tested. Edit the now.ssl.app.conf as follows:
- passphrase="password", keystorePath="./x509/localhost.jks", keystoreType="JKS", sslProtocol="TLS", algorithm="SunX509"
- passphrase="password", keystorePath="./x509/localhost.p12", keystoreType="PKCS12", sslProtocol="TLS", algorithm="SunX509"
See the x509.txt file, section [ Create PKCS12 Keystore ] for how to create the localhost.p12 keystore.
- sbt clean test
- sbt run
- [1] akka.http.NowApp
- [2] akka.http.NowSslApp
- Select app by number.
- Curl:
- NowApp - curl http://localhost:7777/api/v1/now
- NowSslApp - curl https://localhost:7443/api/v1/now
- Browser:
- NowApp - http://localhost:7777/
- NowSslApp - https://localhost:7443/