Venafi / VenafiPS

Powershell module to fully automate your Venafi TLS Protect Datacenter and Cloud platforms!
https://venafips.readthedocs.io/
Apache License 2.0
17 stars 8 forks source link

Error when trying to use Add-VcCertificateAssociation #284

Closed afoker closed 1 month ago

afoker commented 1 month ago

Environment

TLSPC

Full Operating System:
VenafiPS version: 6.3.2
PowerShell version: 5.1 
TLSPDC version (if applicable): N/A

Steps to reproduce

https://venafips.readthedocs.io/en/stable/functions/Add-VcCertificateAssociation/#example-3

Expected behavior

That the 5 certificates are assigned to desired application

Actual behavior

Getting error. Invoke-WebRequest : {"errors":[{"code":10055,"message":"Invalid format for UUID [null]","args":[[null]]}]} At C:\Program Files\WindowsPowerShell\Modules\VenafiPS\6.3.2\Public\Invoke-VenafiRestMethod.ps1:286 char:40

Screenshots

It looks like the problem is the following line of code, it is not returning the certificates as expected

107 - $certIDs = Get-VcData -InputObject $Certificate -Type 'Certificate'