You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are running our code in dark site and we don't have direct access to ESX hosts, we reach to intermediate server which has access to ESX hosts. We were able to override Roundtripper for vim25client which works for all other operations except for this below case:
For adding the host to cluster we need SHA1 thumbprint of host, in-order to fetch the thumbprint we user FromURL method of HostCertificateInfo which make a tls connection to host and the transport used here is DefaultTransport.
t := vim25ClientObject.Client.DefaultTransport()
err = hostCertInfo.FromURL(&url.URL{Host: hostName}, t.TLSClientConfig)
Can someone please provide a solution how to make use of RoundTripper Transport in FromURL so that we could land on intermediate server from which the ESX hosts are reachable?
Or if there is any other solution for fetching the host thumbprint (thumbprint of x509 certificate).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We are running our code in dark site and we don't have direct access to ESX hosts, we reach to intermediate server which has access to ESX hosts. We were able to override Roundtripper for vim25client which works for all other operations except for this below case:
For adding the host to cluster we need SHA1 thumbprint of host, in-order to fetch the thumbprint we user FromURL method of HostCertificateInfo which make a tls connection to host and the transport used here is DefaultTransport.
t := vim25ClientObject.Client.DefaultTransport()
err = hostCertInfo.FromURL(&url.URL{Host: hostName}, t.TLSClientConfig)
Beta Was this translation helpful? Give feedback.
All reactions