How to renew certificate exchange 2016 latest CU via ems

Jan De Smet 156 Reputation points
2023-02-23T15:16:37.1+00:00

Hello we are trying to renew our wildcard certificate via EMS, as the options are no longer there in EAC.

We follow the instructions:https://learn.microsoft.com/en-us/exchange/architecture/client-access/renew-certificates?view=exchserver-2016

we are able to import the certificate and it shows as valid in EAC.

However, when we try to export this certifcate to a PFX, we get an error: A special Rpc error occurs on server "server": The private key couldn't be exported as PKCS-12. It either couldn't be
accessed or isn't exportable.

Does anyone have had any issues before?

Sources on the internet show different cmds, and the info from Ms website does not seem to do the trick.

Many thanks.

Exchange | Exchange Server | Other
Exchange | Exchange Server | Management
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Jarvis Sun-MSFT 10,231 Reputation points Microsoft External Staff
    2023-02-24T07:19:25.89+00:00

    Hi @Jan De Smet ,

    A special Rpc error occurs on server "server": The private key couldn't be exported as PKCS-12. It either couldn't be accessed or isn't exportable.

    According to the error message, it could be that the private key was not set as exportable when the certificate was renewed. Did you include the parameter -PrivateKeyExportable when renewing the certificate? If not, it’s suggested to renew the certificate by the following command so that the private key is exportable:

    Get-ExchangeCertificate -Thumbprint <Thumbprint>| New-ExchangeCertificate -PrivateKeyExportable $true
    

    The PrivateKeyExportable parameter specifies whether the certificate has an exportable private key, and the default value is $false. Please refer to: New-ExchangeCertificate (ExchangePowerShell) | Microsoft Learn


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Jarvis Sun-MSFT 10,231 Reputation points Microsoft External Staff
    2023-03-06T08:41:28.9133333+00:00

    Hi @Jan De Smet ,

    Hi, Thank you for your reply. We have created a new request, from another server. We were able to import and export it. Thanks.

    Glad to see that your issue had already been resolved and thanks for sharing the solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that The question author cannot accept their own answer. They can only accept answers by others, I'll repost your solution in case you'd like to Accept the answer.

    How to renew certificate exchange 2016 latest CU via ems

    Issue Symptom:

    We are able to import the certificate via EMS, however when we try to export this certifcate to a PFX, we get an error: A special Rpc error occurs on server "server": The private key couldn't be exported as PKCS-12. It either couldn't be accessed or isn't exportable.

     Solution:

    From another server, use the Get-ExchangeCertificate command to recreate the request, and then import and export certificates can be done normally.

    Best regards,

    Jarvis

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.