Problem
Here is how to set up Rest API on System Recovery.
Solution
1. Run PowerShell as administrator.
2. Run the following command to create the certificate:
New-SelfSignedCertificate -DnsName <Computer Name> -CertStoreLocation "cert:\LocalMachine\My" -NotAfter (Get-Date).AddYears(10)
Example: New-SelfSignedCertificate -DnsName ComputerA -CertStoreLocation "cert:\LocalMachine\My" -NotAfter (Get-Date).AddYears(10)
where ComputerA is computer name where we are creating certificate, and AddYears(10) means 10 years by the expiration.
3. Run MMC as administrator to add the self-signed certificate as a trusted certificate authority.
4. In MMC, select File > Add or Remove Snap-ins
5. In Add/Remove Snap-in window, select Certificates and then click Add.
6. Select Computer account and click on Next.
7. Select Local computer.
8. Click Finish.
9. Click OK.
10. Find the certificate in Console root > Certificates > Personal folder.
11. Right-click on the newly created certificate and then select Properties. Input the desired Friendly
Name field for the certificate based upon what you are testing. Once completed, select the Apply
button followed by OK.
12. Right-click on the certificate and choose Copy.
13. Expand Trusted Root Certificate Authorities(Please import the certificate created above to
Trusted root Certificate).
14. Right-click on the Certificates folder
15. Select Paste, then Export the created Certificate in .PFX format by providing a Security Key and save
it as test.pfx in C:\cert.
16. Close the window.
17. Double-click InstallWebAPI.exe in C:\Program Files\Veritas\Veritas System Recovery\Agent
18. Choose 1.
19. Specify C:\cert\test.pfx.