DannyUtro
Contributor
Contributor

"certificate is required" or terrible exception

Hello everybody!

Sorry for my english. Smiley Wink I get stuck with error while running .NET sample "CIMInfo" - "A certificate is required to complete client authentication" at this line code:

"IWSManEnumerator enumeratorFans = (IWSManEnumerator)

session.Enumerate(urlString,

null, null, wsman.SessionFlagUseBasic() &

wsman.SessionFlagCredUsernamePassword() & wsman.SessionFlagSkipCACheck() & wsman.SessionFlagSkipCNCheck());"

How to install this certificate? I try to install via IE over https://my-esx, but it doesn't installing at "Trusted Root certification Authorities". Any tricks?

Thanks in advance.

0 Kudos
5 Replies
heyitspablo
VMware Employee
VMware Employee

Dannyutro,

Ill have the SDK Dev Support team take a peek,, I could not find an FAQ on it but probably worth creating one.. Smiley Wink

Regards,

Pablo

Keep up with latest info on vSphere PowerCLI http://blogs.vmware.com/vipowershell - Follow me on Twitter @heyitspablo
admin
Immortal
Immortal

You can refer to the section "Obtaining Server Certificates" under Appendix A on page 24 in vSphere Developer's Setup guide for information on obtaining the certificates.

http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/sdk40setupguide.pdf

0 Kudos
DannyUtro
Contributor
Contributor

Thanks for yours answers.

I do not want to use certitificate to login, password or username, i want use a "ticket" to connect CIMOM (wsman) repository via C#, like HardwareStatus plugin for VMware VSphere Client. I don't understand why this exception raised up every time when i try use the samples CIMInfo, when i use a sample in Java - output were like this "Couldnt find a path to valid certificate"

Anybody can help me?

P.S: I can't use a http, i can only use https protocol.

0 Kudos
DannyUtro
Contributor
Contributor

Up! I still can't resolve this problem =(

Pablo, whats says SDK Dev Support team? 😃

0 Kudos
webwarrior
Contributor
Contributor

I am getting the same, issues.

What is the solution?

0 Kudos