summaryrefslogtreecommitdiffstats
path: root/answerfiles/setuppass3.cmd
blob: d93377efab4fcf44974adeb96e7b381418803fd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
echo these are commands to be run upon third login post installation
echo create cert request for AD, sign it, and install it
certreq -v -q -new a:\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