Search code examples
javasslssl-certificatekeytoolwinstone

Winstone configure self signed keystore for SSL Authentication


I am creating a self signed key using

keytool -genkey -keyalg RSA -alias selfsigned -keystore keystore.jks -storepass password -validity 1360 -keysize 2048

Embedding the keystore with Winstone servlet container using --httpsKeyStore=keystore.jks option. When accessing from chrome I am getting the following error

Server has a weak, ephemeral Diffie-Hellman public key

ERR_SSL_WEAK_SERVER_EPHEMERAL_DH_KEY

Is there any way to overcome this issue by creating keystore or configuring Winstone? I can access the site from firefox browser.


Solution

  • Updated my server Java version to 1.7 (Previous was 1.6) and now I can add exception and proceed in chrome browser