title: WebLogic 12 SSLKeyException: Hostname verification failed after restart
body: <p>I have a WAR file deployed on WebLogic 12.1.2.0.0. Application calls a web service via HTTPS. Certificate is imported in DemoTrust.jks. All SSL related settings should be correct. And actually it works but after the server is restarted it does not work for about 15-20 minutes, after that it starts working again. During this period the following errors are printed in console:</p>
  
  <pre><code>&lt;Warning&gt; &lt;Security&gt; &lt;BEA-090504&gt; &lt;Certificate chain received from xxx.xxxxxxxx.xxx.com - 
  167.107.80.230 failed hostname verification check. Certificate contained xxx.xxxxxxxx.xxx.com 
  but check expected xxx.xxxxxxxx.xxx.com&gt;
  </code></pre>
  
  <p>After the warning I get:</p>
  
  <pre><code>javax.xml.ws.WebServiceException: javax.net.ssl.SSLKeyException: Hostname verification failed: 
  HostnameVerifier=weblogic.security.utils.SSLWLSHostnameVerifier,hostname=xxx.xxxxxxxx.xxx.com.
  </code></pre>
  
  <p>In the warning above contained and expected domains are identical.</p>
  
  <p>Thank you for your help!</p>
  
  <p>-E</p>