Recently I have been deploying Exchange 2010 into an environment at work and have hit upon an issue with importing certificates.
I created the certificate request using the normal New-ExchangeCertificate command.
Then I sent the request file to Digicert who returned me a certificate.
At this point I tried to import it using Import-Exchange certificate.
Well this is where the fun started!
I got this error:
The source data is corrupted or not properly Base64 encoded.
??? + CategoryInfo????????? : ReadError: (:) [Import-ExchangeCertificate], InvalidOperationException
??? + FullyQualifiedErrorId : 773ECDDB,Microsoft.Exchange.Management.SystemConfigurationTasks.ImportExchangeCertificate
So I started digging and opened a PSS call and discovered that Exchange wasn?t handling the header and footer in the certificate correctly.
When I opened the cert with Notepad and removed the —–BEGIN PKCS7—– and —–END PKCS7—– lines everything worked fine!