I am trying to install a certificate for a website under a dsc push installation. I keep getting this error…
PowerShell DSC resource MSFT_xPfxImport failed to execute Test-TargetResource functionality with error message:
Cannot validate argument on parameter ‘Thumbprint’. ‘b748609391b8ccf7f79b9920112b527d15124a7e’ is not a valid hash.
+ CategoryInfo : InvalidOperation: ( , CimException
+ FullyQualifiedErrorId : ProviderOperationExecutionFailure
+ PSComputerName :
This is the code I am running
AriesThumbprint = ‘b748609391b8ccf7f79b9920112b527d15124a7e’ # Aries wildcard cert
AriesCertPath = ‘D:\Supporttools\Certificates\LogViewer.pfx’ # path to the Aries “Server” cert
AriesCredential = ‘LogViewer’
CertLocation = ‘LocalMachine’
xPfxImport SiteCert
{
Thumbprint = $Node.AriesThumbprint
Path = $Node.AriesCertPath
Location = $Node.CertLocation
Store = $Node.CertStoreName
Credential = $AriesCredential
Exportable = $true
Ensure = ‘Present’
DependsOn = @(‘[WindowsFeature]IIS’)
The xCertificate module is version is version 2.3.0.0
It’s got to be something simple I am overlooking. Any Ideas?
Thanks for any help,
Ed