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
When invoking this method with the -IncludeAssociated parameter the following error is issued:
Get-TPPIdentity : Cannot bind parameter because parameter 'UriLeaf' is specified more than
once. To provide multiple values to parameters that can accept multiple values, use the
array syntax. For example, "-parameter value1,value2,value3".
Sample code:
Import-Module -Name VenafiPS
Add-Type @"
using System.Net;using System.Security.Cryptography.X509Certificates;public class TrustAllCertsPolicy : ICertificatePolicy { public bool CheckValidationResult( ServicePoint srvPoint, X509Certificate certificate, WebRequest request, int certificateProblem) { return true; }}
"@
Please try and use the bug report template instead of free form. Can you please provide the below?
Operating System:
VenafiPS version:
PowerShell version:
When invoking this method with the -IncludeAssociated parameter the following error is issued:
Get-TPPIdentity : Cannot bind parameter because parameter 'UriLeaf' is specified more than
once. To provide multiple values to parameters that can accept multiple values, use the
array syntax. For example, "-parameter value1,value2,value3".
Sample code:
Import-Module -Name VenafiPS
Add-Type @"
using System.Net;using System.Security.Cryptography.X509Certificates;public class TrustAllCertsPolicy : ICertificatePolicy { public bool CheckValidationResult( ServicePoint srvPoint, X509Certificate certificate, WebRequest request, int certificateProblem) { return true; }}
"@
[System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy
[System.Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$ErrorActionPreference = "Stop"
$password = ConvertTo-SecureString "xxxxxxx" -AsPlainText -Force
$Cred = New-Object System.Management.Automation.PSCredential("administrator@lab.securafi.net",$password)
New-VenafiSession -Server localhost -Credential $Cred -ClientId "WorkflowApp" -Scope @{"Configuration"="manage"}
$Script:VenafiSession
$a = Get-TPPIdentity -ID "AD+ad1:c589dea40536394ea238d73d3919ac04" -IncludeAssociated
$a | Format-List
The text was updated successfully, but these errors were encountered: