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
Hello.
I created a CSR and put it into $CSR variable
I run command New-TppCertificate -Path $CertPath -Name $PCName -CSR $CSR.
I got error that script cannot perform some Add action on $params.body object because of wrong parameter count.
I have created own version of New-TppCertificate function where line 287 is changed to: $param.body.Add('PCKS10', $csr -replace "n|r") <-- notice 2 parameters, not 3
and it worked
Cannot find an overload for "Add" and argument count: 3.
At C:\Program Files\WindowsPowerShell\Modules\VenafiPS\4.2.4\Public\New-TPPCcertificate.ps1:287 char:13
Screenshots
The text was updated successfully, but these errors were encountered:
Hello.
I created a CSR and put it into $CSR variable
I run command
New-TppCertificate -Path $CertPath -Name $PCName -CSR $CSR
.I got error that script cannot perform some Add action on $params.body object because of wrong parameter count.
I have created own version of
New-TppCertificate
function where line 287 is changed to:$param.body.Add('PCKS10', $csr -replace "
n|r")
<-- notice 2 parameters, not 3and it worked
Environment
Test
Steps to reproduce
Expected behavior
Certificate should be created
Actual behavior
Screenshots
The text was updated successfully, but these errors were encountered: