Leaked source code of windows server 2003
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.1 KiB

  1. @setlocal
  2. @if "%_echo%"=="" echo off
  3. echo Verifying that the Testroot Certificate is installed...
  4. set __certinstalled=
  5. for /f %%i in ('tfindcer -a"Microsoft Test Root Authority" -s root -S ^| findstr /c:"2BD63D28 D7BCD0E2 51195AEB 519243C1 3142EBC3"') do (
  6. set __certinstalled=1
  7. )
  8. if defined __certinstalled goto :eof
  9. echo TestRoot does NOT appear to be installed yet. Installing now...
  10. @rem Install testroot certificate.
  11. certmgr -add %RazzleToolPath%\testroot.cer -r localMachine -s root
  12. echo Check again to see if Testroot is installed...
  13. set __certinstalled=
  14. for /f %%i in ('tfindcer -a"Microsoft Test Root Authority" -s root -S ^| findstr /c:"2BD63D28 D7BCD0E2 51195AEB 519243C1 3142EBC3"') do (
  15. set __certinstalled=1
  16. )
  17. if defined __certinstalled echo TestRoot installed successfully&&goto :eof
  18. echo TestRoot 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 -r localMachine -add %RazzleToolPath%\testroot.cer -s root
  22. endlocal