Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.0 KiB

  1. @setlocal
  2. @if "%_echo%"=="" echo off
  3. echo Verifying that the Test PCA Certificate is installed...
  4. set __certinstalled=
  5. for /f %%i in ('tfindcer -a"Microsoft Test PCA" -s ca -S ^| findstr /c:"B1705970 38A12D9B 4E3CFA46 A6BD2454 9BB432D6"') do (
  6. set __certinstalled=1
  7. )
  8. if defined __certinstalled goto :eof
  9. echo Test PCA does NOT appear to be installed yet. Installing now...
  10. @rem Install test pca certificate.
  11. certmgr -add %RazzleToolPath%\testpca.cer -r localMachine -s ca
  12. echo Check again to see if Test PCA Certificate is installed...
  13. set __certinstalled=
  14. for /f %%i in ('tfindcer -a"Microsoft Test PCA" -s ca -S ^| findstr /c:"B1705970 38A12D9B 4E3CFA46 A6BD2454 9BB432D6"') do (
  15. set __certinstalled=1
  16. )
  17. if defined __certinstalled echo Test PCA installed successfully&&goto :eof
  18. echo Test PCA Certificate still not installed. You may have to do this manually. Simply
  19. echo log on as a local administrator and issue the following command:
  20. echo
  21. echo certmgr -add %RazzleToolPath%\testpca.cer -r localMachine -s ca
  22. endlocal