{"id":2182,"date":"2017-10-09T01:18:09","date_gmt":"2017-10-09T01:18:09","guid":{"rendered":"http:\/\/leinss.com\/blog\/?p=2182"},"modified":"2017-10-09T01:19:02","modified_gmt":"2017-10-09T01:19:02","slug":"sccm-pki-fun-with-certificates","status":"publish","type":"post","link":"https:\/\/leinss.com\/blog\/?p=2182","title":{"rendered":"SCCM PKI Fun with Certificates"},"content":{"rendered":"<p>This was fun problem to sort out.\u00a0 I was asked to jump in and fix a SCCM server already built to work with PKI.\u00a0 Attempts to get clients registered with the server would end up with bizarre error messages like this:<\/p>\n<pre>RegTask: Client is not registered. Sending registration request\r\nRegTask: Reply for registration was empty. Error: 0x8000ffff<\/pre>\n<p>I worked on the problem for about 8 hours at work, then went home and setup PKI in my home SCCM lab in about 30 minutes.\u00a0 I decided I needed to enlist Microsoft PSS on this issue.<\/p>\n<p>After working with Microsoft for about 2.5 hours: they tracked the problem to the certificate on the management point bound to IIS being &#8220;too new&#8221;.\u00a0 Essentially, SCCM has legacy code in it that only understands certificates based on the CSP templates (Windows XP\/Server 2003) and not KSP\/CNG templates (Windows Server 2008 and later).<\/p>\n<p>This is explained in more detail here:<\/p>\n<p><a href=\"https:\/\/www.sevecek.com\/EnglishPages\/Lists\/Posts\/Post.aspx?ID=66\">https:\/\/www.sevecek.com\/EnglishPages\/Lists\/Posts\/Post.aspx?ID=66<\/a><\/p>\n<p>The funny part is I was actually using a CA template I had found on the production distribution points that were already up and working, but I guess using the wrong certificate template on DPs doesn&#8217;t matter, but using the wrong one on the MP does matter for client registration at least!<\/p>\n<p>I had no access to the CA server, so I couldn&#8217;t snoop around on the properties of said certificate templates and they were named &#8220;2012 or later IIS&#8221;.\u00a0 Of course the management server is running Windows Server 2012 R2, so why wouldn&#8217;t I pick that template?<\/p>\n<p>In the end, you have to use the command line to see the cryptographic provider of the certificates (this doesn&#8217;t show up in the GUI):<\/p>\n<pre>certutil -repairstore my *<\/pre>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"2188\" data-permalink=\"https:\/\/leinss.com\/blog\/?attachment_id=2188\" data-orig-file=\"https:\/\/i0.wp.com\/leinss.com\/blog\/wp-content\/uploads\/2017\/10\/sccmcert11.png?fit=644%2C425&amp;ssl=1\" data-orig-size=\"644,425\" data-comments-opened=\"1\" data-image-title=\"sccmcert1[1]\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/leinss.com\/blog\/wp-content\/uploads\/2017\/10\/sccmcert11.png?fit=525%2C346&amp;ssl=1\" class=\"alignnone size-full wp-image-2188\" src=\"https:\/\/i0.wp.com\/leinss.com\/blog\/wp-content\/uploads\/2017\/10\/sccmcert11.png?resize=525%2C346&#038;ssl=1\" alt=\"\" width=\"525\" height=\"346\" srcset=\"https:\/\/i0.wp.com\/leinss.com\/blog\/wp-content\/uploads\/2017\/10\/sccmcert11.png?w=644&amp;ssl=1 644w, https:\/\/i0.wp.com\/leinss.com\/blog\/wp-content\/uploads\/2017\/10\/sccmcert11.png?resize=300%2C198&amp;ssl=1 300w\" sizes=\"(max-width: 525px) 100vw, 525px\" \/><\/p>\n<p>It seems that other people are annoyed by this and according to Microsoft the ability to use CNG or more &#8220;modern&#8221; certificate templates is coming in a newer build of SCCM:<\/p>\n<p><a href=\"https:\/\/configurationmanager.uservoice.com\/forums\/300492-ideas\/suggestions\/17451757-support-v3-and-newer-certificate-templates-for-htt\">https:\/\/configurationmanager.uservoice.com\/forums\/300492-ideas\/suggestions\/17451757-support-v3-and-newer-certificate-templates-for-htt<\/a><\/p>\n<ul>\n<li>Soli Deo Gloria<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This was fun problem to sort out.\u00a0 I was asked to jump in and fix a SCCM server already built to work with PKI.\u00a0 Attempts to get clients registered with the server would end up with bizarre error messages like this: RegTask: Client is not registered. Sending registration request RegTask: Reply for registration was empty. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/leinss.com\/blog\/?p=2182\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;SCCM PKI Fun with Certificates&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[12],"tags":[],"class_list":["post-2182","post","type-post","status-publish","format-standard","hentry","category-sccm"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7wiG8-zc","jetpack-related-posts":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2182"}],"version-history":[{"count":12,"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2182\/revisions"}],"predecessor-version":[{"id":2197,"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2182\/revisions\/2197"}],"wp:attachment":[{"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leinss.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}