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.

153 lines
7.6 KiB

  1. @echo off
  2. rem
  3. rem !!!!!! dont forget that there MUST be a property usage too !!!!!!
  4. rem
  5. set l_SAUTH=1.3.6.1.5.5.7.3.1
  6. set l_CAUTH=1.3.6.1.5.5.7.3.2
  7. set l_CSIGN=1.3.6.1.5.5.7.3.3
  8. set l_EMAIL=1.3.6.1.5.5.7.3.4
  9. set l_TSTMP=1.3.6.1.5.5.7.3.8
  10. set l_SVRGT=1.3.6.1.4.1.311.10.3.3
  11. set l_NETSC=2.16.840.1.113730.4.1
  12. set l_DISABLE=1.3.6.1.4.1.311.10.4.1
  13. set l_CMGR=certmgr -add -all -c
  14. echo .
  15. echo . checking out *.sst
  16. echo .
  17. out *.sst
  18. if exist roots.sst del roots.sst
  19. if exist cas.sst del cas.sst
  20. rem --------------------------------------------------------------------------------------------------------------
  21. rem *** VERISIGN ***
  22. rem --------------------------------------------------------------------------------------------------------------
  23. set l_NAME=VeriSign Commercial Software Publishers CA
  24. %l_CMGR% -eku "%l_EMAIL%,%l_CSIGN%" -name "%l_NAME%" verisign\mscom1999.509 roots.sst
  25. %l_CMGR% -eku "%l_EMAIL%,%l_CSIGN%" -name "%l_NAME%" verisign\mscom2004.509 roots.sst
  26. set l_NAME=VeriSign Individual Software Publishers CA
  27. %l_CMGR% -eku "%l_EMAIL%,%l_CSIGN%" -name "%l_NAME%" verisign\msind1999.509 roots.sst
  28. %l_CMGR% -eku "%l_EMAIL%,%l_CSIGN%" -name "%l_NAME%" verisign\msind2004.509 roots.sst
  29. set l_NAME=VeriSign Class 1 Primary CA
  30. %l_CMGR% -eku "%l_EMAIL%,%l_CAUTH%" -name "%l_NAME%" verisign\class1-v0.509 roots.sst
  31. %l_CMGR% -eku "%l_EMAIL%,%l_CAUTH%" -name "%l_NAME%" verisign\class1-v1.509 roots.sst
  32. %l_CMGR% -eku "%l_EMAIL%,%l_CAUTH%" -name "%l_NAME%" verisign\class1-v2.509 roots.sst
  33. set l_NAME=VeriSign Class 2 Primary CA
  34. %l_CMGR% -eku "%l_EMAIL%,%l_CAUTH%,%l_CSIGN%" -name "%l_NAME%" verisign\class2-v1.509 roots.sst
  35. %l_CMGR% -eku "%l_EMAIL%,%l_CAUTH%,%l_CSIGN%" -name "%l_NAME%" verisign\class2-v2.509 roots.sst
  36. set l_NAME=VeriSign Class 3 Primary CA
  37. %l_CMGR% -eku "%l_EMAIL%,%l_CAUTH%,%l_CSIGN%,%l_SAUTH%" -name "%l_NAME%" verisign\class3-v1.509 roots.sst
  38. %l_CMGR% -eku "%l_EMAIL%,%l_CAUTH%,%l_CSIGN%,%l_SAUTH%" -name "%l_NAME%" verisign\class3-v2.509 roots.sst
  39. set l_NAME=VeriSign Class 4 Primary CA
  40. %l_CMGR% -eku "%l_EMAIL%,%l_CAUTH%,%l_CSIGN%,%l_SAUTH%" -name "%l_NAME%" verisign\class4-v1.509 roots.sst
  41. set l_NAME=VeriSign/RSA Commercial CA
  42. %l_CMGR% -eku "%l_EMAIL%,%l_CAUTH%,%l_SAUTH%" -name "%l_NAME%" rsa\rsa-cca.crt roots.sst
  43. set l_NAME=VeriSign/RSA Secure Server CA
  44. %l_CMGR% -eku "%l_SAUTH%" -name "%l_NAME%" rsa\rsa-ssca.crt roots.sst
  45. %l_CMGR% -eku "%l_SAUTH%" -name "%l_NAME%" rsa\sscav2.509 roots.sst
  46. rem ------ this is the "us" cert -- we don't want to ship this!
  47. rem ------ set l_NAME=VeriSign Online Revocation Status Service
  48. rem ------ %l_CMGR% -name "%l_NAME%" verisign\crlsign-v1.509 roots.sst
  49. set l_NAME=VeriSign Time Stamping CA
  50. %l_CMGR% -eku "%l_TSTMP%" -name "%l_NAME%" verisign\timeroot.509 roots.sst
  51. %l_CMGR% verisign\class1iv1.509 cas.sst
  52. %l_CMGR% verisign\class2iv1.509 cas.sst
  53. rem --------------------------------------------------------------------------------------------------------------
  54. rem *** MICROSOFT ***
  55. rem --------------------------------------------------------------------------------------------------------------
  56. set l_NAME=Microsoft Authenticode(tm) Root
  57. %l_CMGR% -eku "%l_EMAIL%,%l_CSIGN%" -name "%l_NAME%" msft\msroot99.cer roots.sst
  58. set l_NAME=Microsoft Timestamp Root
  59. %l_CMGR% -eku "%l_TSTMP%" -name "%l_NAME%" msft\hawking.cer roots.sst
  60. set l_NAME=Microsoft Root SGC Authority
  61. %l_CMGR% -eku "%l_SAUTH%,%l_SVRGT%,%l_NETSC%" -name "%l_NAME%" msft\sgcroot.crt roots.sst
  62. %l_CMGR% msft\whqlroot.cer roots.sst
  63. %l_CMGR% -eku "%l_SAUTH%,%l_SVRGT%,%l_NETSC%" msft\sgc_ca.crt cas.sst
  64. %l_CMGR% msft\mstemp.cer cas.sst
  65. %l_CMGR% test\mstest.cer cas.sst
  66. rem --------------------------------------------------------------------------------------------------------------
  67. rem *** GTE ***
  68. rem --------------------------------------------------------------------------------------------------------------
  69. set l_NAME=GTE CyberTrust Root
  70. %l_CMGR% -eku "%l_EMAIL%,%l_CAUTH%,%l_SAUTH%" -name "%l_NAME%" gte\ct_root.cer roots.sst
  71. rem --------------------------------------------------------------------------------------------------------------
  72. rem *** ATT ***
  73. rem --------------------------------------------------------------------------------------------------------------
  74. set l_NAME=ATT Certificate Services
  75. %l_CMGR% -eku "%l_EMAIL%,%l_CAUTH%,%l_SAUTH%" -name "%l_NAME%" att\att.crt roots.sst
  76. set l_NAME=ATT Directory Services
  77. %l_CMGR% -eku "%l_EMAIL%,%l_CAUTH%,%l_SAUTH%" -name "%l_NAME%" att\attdir.crt roots.sst
  78. rem --------------------------------------------------------------------------------------------------------------
  79. rem *** THAWTE ***
  80. rem --------------------------------------------------------------------------------------------------------------
  81. %l_CMGR% -eku "%l_CAUTH%,%l_EMAIL%,%l_CSIGN%" thawte\pbca2020.crt roots.sst
  82. %l_CMGR% -eku "%l_CAUTH%,%l_EMAIL%,%l_CSIGN%" thawte\ppca2020.crt roots.sst
  83. %l_CMGR% -eku "%l_CAUTH%,%l_EMAIL%" thawte\pfca2020.crt roots.sst
  84. %l_CMGR% -eku "%l_SAUTH%,%l_CSIGN%" thawte\sca1998.crt roots.sst
  85. %l_CMGR% -eku "%l_SAUTH%,%l_CSIGN%" thawte\sca2020.crt roots.sst
  86. %l_CMGR% -eku "%l_SAUTH%,%l_CSIGN%" thawte\spca1998.crt roots.sst
  87. %l_CMGR% -eku "%l_SAUTH%,%l_CSIGN%" thawte\spca2020.crt roots.sst
  88. rem --------------------------------------------------------------------------------------------------------------
  89. rem *** KEYWITNESS ***
  90. rem --------------------------------------------------------------------------------------------------------------
  91. %l_CMGR% -eku "%l_SAUTH%,%l_CAUTH%,%l_EMAIL%" other\kwitness.crt roots.sst
  92. rem --------------------------------------------------------------------------------------------------------------
  93. rem *** MCI ***
  94. rem --------------------------------------------------------------------------------------------------------------
  95. %l_CMGR% -eku "%l_SAUTH%,%l_CAUTH%,%l_EMAIL%" other\mcimall.crt roots.sst
  96. echo .
  97. echo . checking in *.sst
  98. echo .
  99. in -c"auto create" *.sst
  100. certmgr -v roots.sst > roots.txt
  101. certmgr -v cas.sst > cas.txt