Closed rnkhouse closed 3 years ago
it's a change in v4 of Posh-ACME discussed here: https://github.com/rmbolger/Posh-ACME/issues/302
i used this to resolve it:
$pfxPassSecure = ConvertTo-SecureString -String (Get-PAOrder $certificateName.Replace('!', '*')).PfxPass -AsPlainText -Force
$certificate = Get-PfxCertificate -FilePath $pfxFilePath -Password $pfxPassSecure
@zerocaps yes. I realized that afterward. I fixed it using the below code:
$PfxPassB64U = -join($orderData.PfxPassB64U, "", "=");
$PfxPass = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($PfxPassB64U));
And use $PfxPass
instead of $orderData.PfxPass
@zerocaps / @rnkhouse can you share the updated script that you are running - just noticed my script is failing and looking for the logic in the fix for azuredevops
I am getting below error in import certificate stage:
Previously, it was working fine.