Forum Discussion

Kamalakar Kamsani's avatar
Jul 10, 2017

Troubleshooting - Trusted root certificates (error code 151066)

You may receive an error message “Site Recovery configuration failed.” while configuring Azure to Azure VM replication. Most of these issues occurred due to the required trusted root certificates used for authorization and authentication aren't present on the machine.

 

This troubleshooting article details some of the possible causes and recommended actions to resolve this issue.

  • rasingh2310's avatar
    rasingh2310
    Copper Contributor

    Kamalakar Kamsani kind of late reply here but hopefully it will someone because I have had this issue a couple of times with my machines.

    If you get this error when enabling replication:

    • Error ID
      151066
    • Error Message
      Site recovery configuration failed.
    • Possible causes
      The required trusted root certificates used for authorization and authentication are not present on the machine.

    Link provided to help you is useless so here's the solution:


    Actual Cause: 

    Missing Digicert root certificate.  Updating windows updates won't help sometimes neither with it.

     

    Solution:

    Run this command to verify if you have the root certs installed on the server:

    & "C:\Program Files (x86)\Microsoft Azure Site Recovery\agent\AzureRcmCli" --validaterootcert

     

    If you get the above error, get the missing certs from the link below:

    https://www.digicert.com/kb/digicert-root-certificates.htm

    Download .pem files from the above link and import the certs on the server under "trust root certificate authorities" using certmgr

     

    Try to enable replication again.  It should work.

     

     
     

Resources