• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

Tomcat always shows self signed certificate insted of trusted certificate from cert signing auth

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I have a keystore with selfsigned certificate, private key generated and the trusted certificates [root,chain and server].
After enabling SSL port on tomcat6.29, tomcat always picks self signed certificate instead of trusted certificate.

<Connector
port="8443" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
keystoreFile="${user.home}/.keystore" keystorePass="changeit"
clientAuth="false" sslProtocol="TLS"/>

If i mention keyalias as trusted keyalias i get the error as shown below and tomcat wont start.

ERROR: java.io.IOException: Alias name keyalias does not identify a key entry

<Connector
port="8443" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
keyAlias="keyalias" keystoreFile="${user.home}/.keystore" keystorePass="changeit"
clientAuth="false" sslProtocol="TLS"/>

Any help with this issue would be great.

Thanks,
Bhargav
 
Saloon Keeper
Posts: 24214
167
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you sure you know what value "${user.home}" is set to? If you're not pointing to the proper keystore file, obviously the cert can't be retrieved.

The "keytool -list -keystore keystorefilename" command can be used to list the aliases of the certs. If the one you want isn't in there, that can be a problem, although you should get a message and a startup failure.

If you don't explicitly supply an alias name in your Connector element, the default one that will be used is named "tomcat".
 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm also facing this issue. the keytool list shows the alias tomcat but tomcat couldn't picking it. I also mentioned the alias name in server.xml as tomcat but tomcat is throwing an error
java.io.IOException: Alias name tomcat does not identify a key entry

Any suggestion would be much appreciated

 
If you look closely at this tiny ad, you will see five bicycles and a naked woman:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic