special Rpc error occurs on server

Glenn Maxwell 10,731 Reputation points
2023-08-21T17:31:10.62+00:00

Hi All

i am using exchange 2016 hybrid environment. i am trying to import exchange wildcard certificate and i am getting the below error. Please guide me. The password is correct, no issue with the share i am able to access it. i am logged in exch02 VM and executing below syntax.

Import-ExchangeCertificate -server exch02 -FileData ([System.IO.File]::ReadAllBytes('\\exch01\Certshare\cert.pfx')) -Password (get-credential).password

when it prompts for credentials i am giving username as my domain login and password as pfx password. I am getting below error

A special Rpc error occurs on server exch02: The source data cannot be imported or the wrong password was specified.

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,173 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,349 questions
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
526 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,468 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,981 questions
{count} votes

Accepted answer
  1. Yuki Sun-MSFT 41,006 Reputation points
    2023-08-22T05:31:00.2233333+00:00

    Hi @Glenn Maxwell ,

    So, the exchange wildcard certificate was exported from exch01 and you are now trying to import it into exch02, right?
    Have you checked if the certificate is valid by running Get-ExchangeCertificate on exch01?

    Based on my research, the error you met might be related to the private key of the certificate. To correct this, please try following the steps below and then try it again by exporting the certificate with private key on exch01 and then importing it on exch02 to check the result:

    1. Open Microsoft Management Console (mmc.exe) on exch01 and add the Certificates snap-in.
    2. Locate the certificate, click the Details tab, click Serial Number in the Field column, select and copy it.
    3. Open a command prompt as an administrator, type: certutil -repairstore my "SerialNumber" (SerialNumber is the serial number that you wrote down in step 2.)
    4. In the Certificates snap-in, right-click Certificates, and then click Refresh.

    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.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Amit Singh 4,866 Reputation points
    2023-08-22T05:44:12.7833333+00:00

    Assign the self-signed certificate to the Exchange services with PowerShell.

    0 comments No comments

  2. Samdi 36 Reputation points
    2023-10-24T17:03:52.8733333+00:00
    0 comments No comments