{"id":212,"date":"2022-12-17T21:47:00","date_gmt":"2022-12-17T21:47:00","guid":{"rendered":"https:\/\/jay-miah.co.uk\/?p=212"},"modified":"2024-11-18T15:11:42","modified_gmt":"2024-11-18T15:11:42","slug":"install-certificate-services-on-windows-server-2022","status":"publish","type":"post","link":"https:\/\/jay-miah.co.uk\/index.php\/install-certificate-services-on-windows-server-2022\/","title":{"rendered":"Install Certificate Services on Windows Server 2022"},"content":{"rendered":"<p>A Certificate Authority is an entity that stores, signs and issues digital certificates. A digital certificate certifies the ownership of a public key by the named subject of the certificate. This allows others to rely upon signatures made about the private key that corresponds to the certified public key.<\/p>\n<p>Microsoft\u2019s Certification Authority is based on Public Key Infrastructure. The Active Directory Certificate Services role can be deployed on most Windows Server operating systems and provides the ability to act as an Enterprise or Standalone Root CA.<\/p>\n<p>Using a Windows Root CA server is very useful for many applications, for example \u2013 if deploying 802.1x with certificate-based authentication or EAP-TLS for Wireless 802.1x, a Windows Server provides the ability to enrol and automatically distribute certificates to endpoints with ease through Microsoft Group Policy.<\/p>\n<p>A CA Server can also be used to sign certificates for Servers, Network and Security Devices within an internal organisation. Certificate based authentication is considered one of the most secure methods as its uses public key and private key to encrypt and decrypt data.<\/p>\n<p>In this basic step-by-step guide, we will install the Active Directory Certificate Services role and configure it.<\/p>\n<p>A fresh new virtual instance of Windows Server 2022 has been installed, this server has been renamed, basic networking has been configured and it has been joined to the Active Directory Domain.<\/p>\n<p>Let\u2019s get started!<\/p>\n<h4>Install the Certification Authority Server Role<\/h4>\n<p><strong>1.<\/strong> Login to Windows Server 2022 and launch \u201cServer Manager\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1022\" height=\"433\" class=\"wp-image-213\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-1.png\" \/><\/p>\n<p><strong>2.<\/strong> Click the \u201cManage\u201d button select \u201cAdd roles and features\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"396\" height=\"213\" class=\"wp-image-214\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-2.png\" \/><\/p>\n<p><strong>3.<\/strong> At the Wizard click \u201cNext\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"783\" height=\"555\" class=\"wp-image-215\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-3.png\" \/><\/p>\n<p><strong>4.<\/strong> Select \u201cRole-Based or Feature-based installation\u201d and click \u201cNext\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"779\" height=\"557\" class=\"wp-image-216\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-4.png\" \/><\/p>\n<p><strong>5.<\/strong> Click \u201cSelect a server from a server pool\u201d and highlight the current server, click \u201cNext\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"781\" height=\"558\" class=\"wp-image-217\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-5.png\" \/><\/p>\n<p><strong>6.<\/strong> Tick the \u201cActive Directory Certificate Services\u201d box, a new Window will pop up click \u201cAdd Features\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"781\" height=\"556\" class=\"wp-image-218\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-6.png\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"412\" height=\"433\" class=\"wp-image-219\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-7.png\" \/><\/p>\n<p><strong>7.<\/strong> Click \u201cNext\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"781\" height=\"556\" class=\"wp-image-220\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-8.png\" \/><\/p>\n<p><strong>8.<\/strong> At the features window, click \u201cNext\u201d we are not installing any additional features<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"781\" height=\"556\" class=\"wp-image-221\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-9.png\" \/><\/p>\n<p><strong>9.<\/strong> Read of the role description and, note the tasks that cannot be performed once the CA role is installed. click \u201cNext\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"779\" height=\"557\" class=\"wp-image-222\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-10.png\" \/><\/p>\n<p><strong>10.<\/strong> From the role services list select \u201cCertification Authority\u201d and \u201cCertification authority Web Enrollment\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"781\" height=\"555\" class=\"wp-image-223\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-11.png\" \/><\/p>\n<p>Click \u201cAdd Features\u201d at the popup for IIS installation<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"411\" height=\"431\" class=\"wp-image-224\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-12.png\" \/><\/p>\n<p><strong>11.<\/strong> Click \u201cNext\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"779\" height=\"557\" class=\"wp-image-225\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-13.png\" \/><\/p>\n<p><strong>12.<\/strong> Click \u201cNext\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"780\" height=\"556\" class=\"wp-image-226\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-14.png\" \/><\/p>\n<p><strong>13.<\/strong> Click \u201cNext\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"782\" height=\"556\" class=\"wp-image-227\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-15.png\" \/><\/p>\n<p><strong>14.<\/strong> Select the \u201cRestart the destination server automatically if required\u201d tick box. This will allow the server to restart automatically if a reboot is required at the end of the install. Finally click \u201cInstall\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"782\" height=\"556\" class=\"wp-image-228\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-16.png\" \/><\/p>\n<p><strong>15.<\/strong> Once the role is installed, click \u201cClose\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"782\" height=\"557\" class=\"wp-image-229\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-17.png\" \/><\/p>\n<h4>Configure the Role<\/h4>\n<p><strong>1.<\/strong> From Server Manager click on the yellow warning message, select \u201cConfigure Active Directory Certificate Services on this Server\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1021\" height=\"354\" class=\"wp-image-230\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-18.png\" \/><\/p>\n<p><strong>2.<\/strong> At the configuration wizard click \u201cchange\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"757\" height=\"557\" class=\"wp-image-231\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-19.png\" \/><\/p>\n<p><strong>3.<\/strong> Provide the Domain Admin user account credentials and click \u201cOK\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"363\" class=\"wp-image-232\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-20.png\" \/><\/p>\n<p><strong>4.<\/strong> Note the change in the \u201cCredentials\u201d window, click \u201cNext\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"756\" height=\"554\" class=\"wp-image-233\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-21.png\" \/><\/p>\n<p><strong>5.<\/strong> Tick both role services and click \u201cNext\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"755\" height=\"555\" class=\"wp-image-234\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-22.png\" \/><\/p>\n<p><strong>6.<\/strong> Select \u201cEnterprise CA\u201d and click \u201cNext\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"758\" height=\"558\" class=\"wp-image-235\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-23.png\" \/><\/p>\n<p><strong>7.<\/strong> Select \u201cRoot CA\u201d and click \u201cNext\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"758\" height=\"555\" class=\"wp-image-236\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-24.png\" \/><\/p>\n<p><strong>8.<\/strong> Select \u201cCreate a new private key\u201d and click \u201cNext\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"757\" height=\"555\" class=\"wp-image-237\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-25.png\" \/><\/p>\n<p><strong>9.<\/strong> Leave the default values for the private key information and click \u201cNext\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"756\" height=\"557\" class=\"wp-image-238\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-26.png\" \/><\/p>\n<p><strong>10.<\/strong> Specify the common name for the CA or leave as default. Click \u201cNext\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"755\" height=\"554\" class=\"wp-image-239\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-27.png\" \/><\/p>\n<p><strong>11.<\/strong> Specify the CA Certificate default validity period, this is set to 5 years by default, this can be changed if required, Click \u201cNext\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"755\" height=\"558\" class=\"wp-image-240\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-28.png\" \/><\/p>\n<p><strong>12.<\/strong> leave the default location of storing the database files and click \u201cNext\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"757\" height=\"555\" class=\"wp-image-241\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-29.png\" \/><\/p>\n<p><strong>13.<\/strong> Review the configuration and click \u201cConfigure\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"755\" height=\"555\" class=\"wp-image-242\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-30.png\" \/><\/p>\n<p><strong>14.<\/strong> Once configuration has successfully completed, click \u201cClose\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"753\" height=\"555\" class=\"wp-image-243\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-31.png\" \/><\/p>\n<h4>Configure IIS<\/h4>\n<p>By default, IIS does not have HTTPS enabled for the web enrollment service, we need to allow HTTPS connections and define a certificate for the service to use. HTTP connections will work, however in the event the CA server is being accessed from another source to request a certificate, the credentials will be sent over in clear text. It\u2019s important we modify this to use SSL.<\/p>\n<p><strong>1.<\/strong> Click \u201cStart\u201d and type \u201cIIS Manager\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"756\" height=\"214\" class=\"wp-image-244\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-32.png\" \/><\/p>\n<p><strong>2.<\/strong> Expand \u201cServer Name\u201d \u2013 \u201cSites\u201d, right click \u201cDefault Web Site\u201d and select \u201cEdit Bindings\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1019\" height=\"727\" class=\"wp-image-245\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-33.png\" \/><\/p>\n<p><strong>3.<\/strong> Click \u201cAdd\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-246\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-34.png\" width=\"494\" height=\"288\" \/><\/p>\n<p><strong>4.<\/strong> Select \u201chttps\u201d then from the \u201cSSL Certificate\u201d drop down menu, Select the Server certificate that should have been generated automatically by the CA, in this case it\u2019s the \u201cLNS-LNS-CA-01-CA\u201d.<\/p>\n<p>If for any reason this certificate is not yet present, one can be generated by selecting \u201cCreate a Self-Signed\u201d Certificate\u201d from the right-hand pane within IIS.<\/p>\n<p>Click \u201cView\u201d to check the contents of the certificate, then click \u201cOK, and \u201cOK\u201d to save the changes and return to the IIS window.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-247\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-35.png\" width=\"486\" height=\"389\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"510\" class=\"wp-image-248\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-36.png\" \/><\/p>\n<p><strong>5.<\/strong> From the right-hand pane within IIS, select \u201cBrowse*:443 (https)\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1018\" height=\"726\" class=\"wp-image-249\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-37.png\" \/><\/p>\n<p><strong>6.<\/strong> The browser will launch with \u201chttps:\/\/localhost\/certsrv\u201d in the address field. Click \u201cContinue\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1011\" height=\"673\" class=\"wp-image-250\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-38.png\" \/><\/p>\n<p>From the web interface, we can start requesting certificates from the CA for our organisation. To access this portal from other devices, you can navigate to \u201chttps:\/\/IP Address or DNS name\/certsrv\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1018\" height=\"411\" class=\"wp-image-251\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2022\/12\/word-image-212-39.png\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A Certificate Authority is an entity that stores, signs and issues digital certificates. A digital certificate certifies the ownership of a public key by the<\/p>\n","protected":false},"author":1,"featured_media":256,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[151],"tags":[29,30,31,34,32,33],"class_list":["post-212","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server-endpoint","tag-ca","tag-certificate","tag-certificate-authority","tag-encryption","tag-pki","tag-ssl"],"_links":{"self":[{"href":"https:\/\/jay-miah.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jay-miah.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jay-miah.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jay-miah.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jay-miah.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=212"}],"version-history":[{"count":3,"href":"https:\/\/jay-miah.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/212\/revisions"}],"predecessor-version":[{"id":258,"href":"https:\/\/jay-miah.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/212\/revisions\/258"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jay-miah.co.uk\/index.php\/wp-json\/wp\/v2\/media\/256"}],"wp:attachment":[{"href":"https:\/\/jay-miah.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jay-miah.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jay-miah.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}