Maybe it is out of date, but i will try to ask. I am trying to install SSL for my Tomcat server, and i faced with proble: "trustAnchors parameter must be non-empty". I am not very well in Java, but i guess i have it happens because i have only PrivateKeyEntry in my JKS and no one TrustEntry. I followed by manual from official website and used this command (below) and after restart my Tomcat there is still exception. Could you point me what am i doing wrong?
keytool -genkey -alias server -keyalg RSA -keysize 2048 -sigalg SHA256withRSA -storetype JKS \
-keystore my.server.com.jks -storepass mypwd -keypass mypwd \
-dname "CN=my.server.com, OU=EastCoast, O=MyComp Ltd, L=New York, ST=, C=US" \
-ext "SAN=dns:my.server.com,dns:www.my.server.com,ip:11.22.33.44" \
-validity 7200