summaryrefslogtreecommitdiffstats
path: root/answerfiles/setuppass3.cmd
diff options
context:
space:
mode:
Diffstat (limited to 'answerfiles/setuppass3.cmd')
-rw-r--r--answerfiles/setuppass3.cmd12
1 files changed, 12 insertions, 0 deletions
diff --git a/answerfiles/setuppass3.cmd b/answerfiles/setuppass3.cmd
new file mode 100644
index 0000000..d93377e
--- /dev/null
+++ b/answerfiles/setuppass3.cmd
@@ -0,0 +1,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