title: Tomcat SSL: No trusted certificate found
body: <p>I created a certificate using keytool: </p>
  
  <pre><code>keytool -genkey -alias tomcat -keyalg RSA
  </code></pre>
  
  <p>Exported and imported it into my keystore:</p>
  
  <pre><code>keytool -export -alias tomcat name.crt
  keytool -import -file name.crt
  </code></pre>
  
  <p>When I do keytool -list I have 2 entries:</p>
  
  <pre><code>tomcat, Sept 15, 2010, keyEntry,
  Certificate fingerprint (MD5): ...
  mykey, Sept 17, 2010, trustedCertEntry
  Certificate fingerprint (MD5):...
  </code></pre>
  
  <p>Note that the fingerprints for both entries are the same.</p>
  
  <p>I configured my server.xml to point to my .keystore file</p>
  
  <pre><code>&lt;Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
         maxThreads="150" scheme="https" secure="true"
         keystoreFile="${user.home}/.keystore" keystorePass="changeit"
         clientAuth="false" sslProtocol="TLS" /&gt;
  
  &lt;Connector port="8009" protocol="AJP/1.3" redirectPort="443" /&gt;
  </code></pre>
  
  <p>But in my tomcat logs I see when I perform an action in my Java app:</p>
  
  <pre><code>javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
  ...
  sun.security.validator.ValidatorException: No trusted certificate found
  </code></pre>
  
  <p>Is there any other configuration that needs to be done?</p>