79430451

Date: 2025-02-11 15:18:22
Score: 4
Natty:
Report link

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
Reasons:
  • Blacklisted phrase (1): what am i doing wrong?
  • Blacklisted phrase (1): I am trying to
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: bycha.