You will need to provide the password for the exported private key for that cert.
IF you dont know it, then export the original cert again with the private key and a new password.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I have a problem with importing a new certificate to Exchange 2016 CU23.
I used a command from MS but it's not working.
[PS] C:\Windows\system32>Import-ExchangeCertificate -FileData ([System.IO.File]::ReadAllBytes('C:\Cert\cert.pfx')) -Password (ConvertTo-SecureString -String 'Password' -AsPlainText -Force)
A special Rpc error occurs on server EXCHANGE2016: The source data cannot be imported or the wrong password was specified.
+ CategoryInfo : ReadError: (:) [Import-ExchangeCertificate], InvalidOperationException
+ FullyQualifiedErrorId : [Server=EXCHANGE2016,RequestId=3232dd3e-66c7-4d5c-a443-e25f826ad200,TimeStamp=17.10.2
023 10:55:40] [FailureCategory=Cmdlet-InvalidOperationException] A39CF339,Microsoft.Exchange.Management.SystemConf
igurationTasks.ImportExchangeCertificate
+ PSComputerName : exchange2016.contoso.local
I tried to add a cert via exchange powershell and mmc>certificates but I have an error with the wrong password.
When I try to add this cert to a local computer it's working, the password is correct and I can import it.
Any suggestions? How can I import a new cert correctly?
You will need to provide the password for the exported private key for that cert.
IF you dont know it, then export the original cert again with the private key and a new password.
I found solution. Use this parameters:
openssl pkcs12 -export -certpbe PBE-SHA1-3DES -keypbe PBE-SHA1-3DES -nomac -inkey contoso.com.key -in contoso.com.crt -out contoso.com-legacy.pfx