summaryrefslogtreecommitdiffstats
path: root/answerfiles/setupscript3.cmd.in
blob: 6eae277fcb18bb97e378d77b21ab03bcad952999 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
echo these are commands to be run after setting up the CA
echo create cert request for AD, sign it, and install it
certreq -v -q -new @SETUP_PATH@\adcertreq.inf c:\adcertreq.req
certreq -v -q -submit -attrib "CertificateTemplate:DomainController" c:\adcertreq.req
echo this assumes the request ID is 2 -  request 1 was the creation of the CA cert itself
echo not sure how it is possible to capture the request ID from the certreq -submit output
set requestid=2
certutil -resubmit %requestid%
certreq -v -q -retrieve %requestid% c:\ad.cer c:\ad.p7b
certreq -v -q -accept c:\ad.p7b
certutil -store my
echo you should now be able to access AD via TLS/SSL
@SETUP_PATH@\nextscript.cmd 4