My Environment:

  • ESXi 5.5 u2
  • vCenter 5.5 u2
  • 1 cluster in vCenter
  • Lab in Ravello Cloud

In some beauty day during day:

Symptom:

  • The type initializer for ‘VirtualInfrastructure.Utils.ClientsXml’ threw an exception

In logs: “C:\Users\username\AppData\Local\VMware\vpx\viclient-0.log” i found only:

:Error :P: 3] 2016-06-26 14:05:37.790 possible failure processing clients.xml
System.Net.WebException: The request failed because the client could not validate the server's SSL certificate. (The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.)
at VirtualInfrastructure.Utils.WebQuery.LocalizeWebException(WebException exception)
at VirtualInfrastructure.Utils.WebQuery.Request(String url, Nullable`1 timeoutSecs)
at VirtualInfrastructure.Utils.ClientsXml.ParseXml(Int32 timeoutSecs)
at VpxClient.Login.ClientsXmlLoader.TrySinglePort(ClientsXml clientXml, Exception& activeError)
System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
Server stack trace:
at System.Net.HttpWebRequest.GetResponse()
Exception rethrown at [0]:
...
at System.Net.HttpWebRequest.GetResponse()
at VirtualInfrastructure.Utils.WebDownload.GetResponse()
at VirtualInfrastructure.Utils.WebDownload.get_ResponseStream()
at VirtualInfrastructure.Utils.WebQuery.Request(String url, Nullable`1 timeoutSecs)
System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
...
at System.Net.ConnectStream.WriteHeaders(Boolean async)

--- End of inner exception stack trace ---

--- End of inner exception stack trace ---
[ :Error :M: 1] 2016-06-26 14:05:38.040 Error retrieving clients.xml
Exception already logged, summary: System.Net.WebException:The request failed because the client could not validate the server's SSL certificate. (The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.)
[ :Warning :M: 1] 2016-06-26 14:05:46.776 A certificate for "10.0.0.10" is already trusted but is not the same as the certificate being presented now.
If you choose to install the new certificate for this connection it will replace the existing trusted certificate.

Resolution:
Restart server where is installed vSphere Client helped.

I hope this informative for you. Thanks for Reading!.  Be Social and share it in social media, if you feel worth sharing it. Please comment if you have some own experience related with this topic.

 

Leave a Reply