How to resolve : java.io.IOException: jsse.alias_no_key_entry

后端 未结 4 1826
小蘑菇
小蘑菇 2020-12-11 19:13

I have a Debian virtual machine with Tomcat installed. I would like to install an SSL certificate so that my website is in Https.

I received the following certificat

4条回答
  •  忘掉有多难
    2020-12-11 19:37

    In my case, the cause of this issue was that the SSL key alias present in the application was not same as the alias passed while creating the certificate.

    keytool -genkeypair -keyalg RSA -alias dummyApp -keystore dummy-app.p12 -storepass password -validity 3650 -keysize 2048 -dname "CN=dummy-app, OU=Enterprise, O=Test, L=Unknown, ST=Unknown, C=US" -storetype pkcs12

    To fix, this I had to correct the value of the server.ssl.key-alias property. As per the above SSL generation example, its value should be dummyApp.

提交回复
热议问题