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

New-vdccapiapplication thows error if name of certificate being attached contains asterisk. #248

Closed PFTKev closed 6 months ago

PFTKev commented 6 months ago

Environment

Full Operating System: Windows 11
VenafiPS version: 6.1.2
PowerShell version: 5.1.22621.2506
TLSPDC version (if applicable):

Steps to reproduce

Venafi allows you to name certificates with the common name of a certificate. Often, wildcard certifiacates are saved as something similar to "*.something.com". If you process the code below with any certificate with an asterisk in the name, it will error out.

New-VdcCapiApplication -Path $($DevPath) -CertificatePath $($cert.Path) -CredentialPath $CredentialPath -WebSiteName 'Default Web Site' -BindingIp $Ip -ApplicationName $ApplicationName -PushCertificate -passthru`

Expected behavior

Expected behavior is for the application to be created on the device specified attached to the specified wildcard certificate.

Actual behavior

When running the above code with a certificate with an Asterisk in the name, it fails with the error below.

`

Screenshots

image