Recommend new SecureRandom for an HTTPS server #20908 (#20909)

This commit is contained in:
Arnout Engelen 2016-07-08 11:12:36 +02:00 committed by Konrad Malawski
parent 54ecf32d2b
commit 92019c7ac9
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ abstract class HttpsServerExampleSpec extends WordSpec with Matchers
tmf.init(ks)
val sslContext: SSLContext = SSLContext.getInstance("TLS")
sslContext.init(keyManagerFactory.getKeyManagers, tmf.getTrustManagers, SecureRandom.getInstanceStrong)
sslContext.init(keyManagerFactory.getKeyManagers, tmf.getTrustManagers, new SecureRandom)
val https: HttpsConnectionContext = ConnectionContext.https(sslContext)
// sets default context to HTTPS all Http() bound servers for this ActorSystem will use HTTPS from now on