Hostname Mismatch Errors

If the hostname in the certificate generated by Oracle WebLogic Server does not exactly match the Fully Qualified Hostname of the Server Manager Console machine, then you will see the type of errors listed below in the Server Manager Agent stderr.log/e1agent.logs.

In this case, you need to create a valid Self Signed Certificate using the keytool utility and import the certificate into the WebLogic Custom Truststore and Custom Keystore. Also, you will need to configure WebLogic to use the Custom Truststore and Custom Keystore. This Self Signed Certificate will also need to be imported in the cacerts file of the Server Manager Agents.

javax.net.ssl.SSLException: hostname in certificate didn't match: 
<10.1.1.1> != <server.example.com> at 
org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:227) at 
org.apache.http.conn.ssl.BrowserCompatHostnameVerifier.verify(BrowserCompatHostna
meVerifier.java:54) at 
org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:147) at
 org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128) at 
org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:437
) at 
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultC
lientConnectionOperator.java:180) at 
org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectio
nImpl.java:294) at 
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirec
tor.java:643) at 
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector
.java:479) at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:90
6) at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:80
5) at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:78
4) at 
com.jdedwards.mgmt.agent.UserPasswordCallBack._getUserCredentials(UserPasswordCal
lBack.java:40) at 
com.jdedwards.mgmt.agent.UserPasswordCallBack.<init>(UserPasswordCallBack.java:31
) at 
com.jdedwards.mgmt.agent.E1Agent$ManagementServerDaemonThread.run(E1Agent.java:22
59) at java.lang.Thread.run(Thread.java:722)