VMware Cloud Community
APJ7033
Enthusiast
Enthusiast

Call REST API via powershell smartcard

Hi

Basically here is what I am trying to do. I am trying to make a REST API call against VRA. I am able to authenticate with an account that DOES NOT require smart card auth. So I know the basics of my script are working. When I try to use an account that DOES require a smart card I fail. So when I do this via the browser, creds seems to be passed through and then I am prompted to select my cert.

I have tried using both Invoke-Webrequest and Invoke-Restmethod with and without the certificate \ certificatethumbprint parameter. The API call has the following payload
{
username = Username
password = Password
tenant = Tenant
}

Thanks

Reply
0 Kudos
0 Replies