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.

22 lines
499 B

  1. @echo off
  2. if "%1"=="" goto miss_ca
  3. if "%2"=="" goto miss_req
  4. if not exist "%2" goto req_not_found
  5. pause "Make sure the service is started before press any key..."
  6. echo Sending a request %2 to the CA %computername%\%1
  7. certreq -config %computername%\%1 %2 %2.req
  8. goto end
  9. :miss_ca
  10. echo You must provide a CA name
  11. goto usage
  12. :miss_req
  13. echo You must provide a request file name
  14. goto usage
  15. :req_not_found
  16. echo Request file %2 doesn't exist
  17. :usage
  18. echo Usage: %0 RequestFile
  19. :end