{"id":80,"date":"2010-08-12T18:21:46","date_gmt":"2010-08-12T18:21:46","guid":{"rendered":"http:\/\/wawszczak.pr0.pl\/?p=80"},"modified":"2011-03-31T11:38:19","modified_gmt":"2011-03-31T11:38:19","slug":"instalacja-uslug-certyfikacji-ca-na-windows-2008-r2-core","status":"publish","type":"post","link":"https:\/\/wawszczak.pr0.pl\/en\/2010\/08\/12\/instalacja-uslug-certyfikacji-ca-na-windows-2008-r2-core\/","title":{"rendered":"Certification Authority Service installation on Windows 2008 R2 Core"},"content":{"rendered":"<p>Today I&#8217;ll write about something completely new. Certification Authority Services, called AD CS (Certification Services) was added to the Windows Core distribution only in the R2 release. Windows Core themself was introduced as an installation option in the Windows 2008 release.<br \/>\nThere is a lot of materials covering the Core installation, so I won&#8217;t describe it wider. For example, I suggest to read <a href=\"http:\/\/www.microsoft.com\/poland\/technet\/article\/art0081_01.mspx\">this Nataniel Zieli\u0144ski&#8217;s article<\/a>. For the moment, it is enough to know, that there is almost no graphical user interface. The system is managed from command promt.  There is also <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/cc753802(WS.10).aspx\">very good Getting Started Guide<\/a> what can help start up with Core installation, but most of new features introduced in R2 relase are still poorly documented.<br \/>\nThe CA server installation requires using Add Role Creator on regular Windows 2008 R2, which is unavailable under Core version.  So the first step is installation of service&#8217;s binaries. It can be done with following command:<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">start \/w ocsetup.exe CertificateServices \/norestart \/quiet<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>Next really usefull step is to check corectness of installation. We can do that typing the following in the command prompt:<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">oclist find \/i &quot;CertificateServices&quot;<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>After getting sure, that we have whole service&#8217;s package, we need to configure it. It can be done with VBScript program, which performs the automatic installation. It is available under <a href=\"http:\/\/blogs.technet.com\/b\/pki\/archive\/2009\/09\/18\/automated-ca-installs-using-vb-script-on-windows-server-2008-and-2008r2.aspx\">following link<\/a>. This script can help us avoid our headaches through simple and quick installation of our CA Service. But we still need to provide set of parameters which regulates its work. Full set of possible switches is provided on the script&#8217;s web page. Here, we need to pay attention that parameters:<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">\/interactive<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>and<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">\/iw<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>are not supported under Core installation.<br \/>\nMoreover, before performing CA Service installation process in Core as well as Regular distribution we need to prepare the <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/cc728279(WS.10).aspx\">CApolicy.inf file<\/a>, what must be placed under %SYSTEMROOT% directory. There is example code of such file:<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/>8<br \/>9<br \/>10<br \/>11<br \/>12<br \/>13<br \/>14<br \/>15<br \/>16<br \/>17<br \/>18<br \/>19<br \/>20<br \/>21<br \/>22<br \/><\/div><\/td><td><div class=\"text codecolorer\">[Version]<br \/>\nSignature=&quot;$Windows NT$<br \/>\n<br \/>\n[PolicyStatementExtension]<br \/>\nPolicies=LegalPolicy<br \/>\n<br \/>\n[LegalPolicy]<br \/>\nOID=1.1.1.1.1.1.1.121<br \/>\n<br \/>\nNOTICE=Certificate issued under Test CA Policy<br \/>\nURL=&quot;http:\/\/pki.test.domain.lab\/repozitory\/cps.html&quot;<br \/>\n<br \/>\n[certsrv_server]<br \/>\nrenewalkeylength=2048<br \/>\nRenewalValidityPeriodUnits=5<br \/>\nRenewalValidityPeriod=years<br \/>\nCRLPeriod=days<br \/>\nCRLPeriodUnits=14<br \/>\nCRLOverlapPeriod=days<br \/>\nCRlOverlapUnits=7<br \/>\nCRLDeltaPeriod=hours<br \/>\nCRLDeltaPeriodUnits=0<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>After the installation it is worthy to set up CDP (CRL Distribution Point) parameters with following commands:<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/>8<br \/>9<br \/>10<br \/>11<br \/>12<br \/>13<br \/>14<br \/><\/div><\/td><td><div class=\"text codecolorer\">certutil -setreg CA\\DSConfigDN CN=Configuration,DC=DOMAIN,DC=LAB<br \/>\ncertutil -setreg CA\\CRLPeriodUnits 14<br \/>\ncertutil -setreg CA\\CRLPeriod &quot;Days&quot;<br \/>\ncertutil -setreg CA\\CRLOverlapPeriod &quot;Days&quot;<br \/>\ncertutil -setreg CA\\CRLOverlapUnits 7<br \/>\ncertutil -setreg CA\\CRLDeltaPeriodUnits 0<br \/>\ncertutil -setreg CA\\CRLDeltaPeriod &quot;Hours&quot;<br \/>\ncertutil -setreg CA\\CRLPublicationURLs &quot;65:%windir%\\system32\\CertSrv\\CertEnroll\\%%3%%8%%9.crl\\n79:http:\/\/pki.test.domain.lab\/repozitory\/%%3%%8%%9.crl\\n65:file:\/\/\\\\%%1\\CertEnroll\/%%3%%8%%9.crl&quot;<br \/>\ncertutil -setreg CA\\CACertPublicationURLs &quot;1:%windir%\\system32\\CertSrv\\CertEnroll\\%%1_%%3%%4.crt\\n3:http:\/\/pki.test.domain.lab\/repozitory\/%%1_%%3%%4.crt\\n1:file:\/\/\\\\%%1\\CertEnroll\/%%1_%%3%%4.crt&quot;<br \/>\ncertutil -setreg CA\\AuditFilter 127<br \/>\ncertutil -setreg CA\\ValidityPeriodUnits 2<br \/>\ncertutil -setreg CA\\ValidityPeriod &quot;Years&quot;<br \/>\nnet stop certsvc &amp; net start certsvc<br \/>\ncertutil -crl<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>Creation of such, or simillar script will help us ommit of &#8220;clicking off&#8221; Certificate&#8217;s parameters  under remotely connected Management Console. At the end I would add, that the first article what helped me with start working with CA Services on Windows Core was this <a href=\"http:\/\/eyalestrin.blogspot.com\/2010\/07\/windows-2008-r2-certification-authority.html\">Eyalestrin&#8217;s article<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Today I&#8217;ll write about something completely new. Certification Authority Services, called AD CS (Certification Services) was added to the Windows Core distribution only in the R2 release. Windows Core themself was introduced as an installation option in the Windows 2008 &hellip; <a href=\"https:\/\/wawszczak.pr0.pl\/en\/2010\/08\/12\/instalacja-uslug-certyfikacji-ca-na-windows-2008-r2-core\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[5,7,6],"class_list":["post-80","post","type-post","status-publish","format-standard","hentry","category-pki","category-windows-service","tag-ad-cs","tag-instructions","tag-windows-core"],"_links":{"self":[{"href":"https:\/\/wawszczak.pr0.pl\/en\/wp-json\/wp\/v2\/posts\/80","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wawszczak.pr0.pl\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wawszczak.pr0.pl\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wawszczak.pr0.pl\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wawszczak.pr0.pl\/en\/wp-json\/wp\/v2\/comments?post=80"}],"version-history":[{"count":11,"href":"https:\/\/wawszczak.pr0.pl\/en\/wp-json\/wp\/v2\/posts\/80\/revisions"}],"predecessor-version":[{"id":101,"href":"https:\/\/wawszczak.pr0.pl\/en\/wp-json\/wp\/v2\/posts\/80\/revisions\/101"}],"wp:attachment":[{"href":"https:\/\/wawszczak.pr0.pl\/en\/wp-json\/wp\/v2\/media?parent=80"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wawszczak.pr0.pl\/en\/wp-json\/wp\/v2\/categories?post=80"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wawszczak.pr0.pl\/en\/wp-json\/wp\/v2\/tags?post=80"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}