Repository navigation
How to make use of RoundTripper as transport instead of DefaultTransport in FromURL method of HostCertificateInfo #3171
Unanswered
Ajay-1210
asked this question in
Community Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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)
All reactions