After many feedback from customers and partners, I’ve decided to write another post with more detailed information on how to successfully implement NDES in combination with ConfigMgr and Intune. I hope this helps you implement quicker.
Update 21/10/2014, please check my "Part 3" blog for more information on how to use an additional Web Application Proxy in front of the domain joined NDES server.
From internet to DMZ:
From DMZ to trusted:
Now let’s start with the actual configuring, if something isn’t clear please leave a reply (a reply is always welcome)
Location: HKLM\SYSTEM\CurrentControlSet\Services\HTTP\Parameters Value: MaxFieldLength Type DWORD Data: 65534 (decimal)
Location: HKLM\SYSTEM\CurrentControlSet\Services\HTTP\Parameters Value: MaxRequestBytes Type DWORD Data: 65534 (decimal)
If you get an error 503 "Service unavailable", check the eventviewer. It's likely that the application pool is stopped due to a missing right for the NDESuser.
This website will be hardened later on – don’t worry.
Note: If you are installing CRP to a remote machine from the site server, you will need to add the machine account of site server to the local administrators group on the CRP machine (by default remote site role is installed using site server machine account). Alternatively, you can specify a specific user to install as in the CRP site role installation wizard, and in that case this user would need to be added as a local administrator on the remote CRP site machine.
This URL will be part of the profile send to the devices. This means that the device – out there somewhere on the internet – needs to access this URL. Specify the internet facing URL, not any internal FQDN’s.
E.g. https://ndes.contoso.com/certsrv/mscep/mscep.dll
“CRP's previous status was 0 (0 = Online, 1 = Failed, 4 = Undefined) SMS_CERTIFICATE_REGISTRATION_POINT 4/25/2014 9:50:21 PM 6496 (0x1960)”
However, right after installation of CRP, it might not show that yet. The self-health check runs every 10 minutes, so after 10 minutes it should change from 4 to 0 (online). This can be speed up by restarting the SMS_CERTIFICATE_REGISTRATION_POINT thread if desired.
Thanks Bob Roudebush for sharing.
CRP's previous status was 1 (0 = Online, 1 = Failed, 4 = Undefined)Health check request failed, status code is 403, 'Forbidden'.
Hope this post helped you implement NDES with Intune, please consider leaving a reply if it did!
Great interesting posts about different servers
Hello! Thanks for the great article. Hoping you can help with a problem I'm seeing: SCCM 2012 R2 (sIngle site/primary). When attempting to choose my enterprise CA, I can select it from the list and also select the template name, but the wizard gives me a red exclamation point saying I need to select an enterprise CA. The CA is published in AD. The only difference I see is that other CA's we've created are published with the FQDN while this particular CA is published as the short name. Thoughts? Thanks for your time!!
Thank you for this very timely article! I'm not sure how it would be possible to setup NDES without it. Regarding the two certificates needed for NDES (1 client, 1 server, or 1 client and server), it is not very clear how those certificates are meant to be obtained. I'm not sure if what I did is correct, but here are my steps: -On the CA, duplicate the Web Server certificate, name the new template NDES Server. -Extension Tab, Application Policies: Add Client Authentication (Server is already part of the Web Server template). -Security: Add NDES server with Read and Enroll. -Subject Name: Supply in the request. Publish the new certificate template. Then on the NDES server, I manually requested a new certificate using the MMC Snapin, Local computer. -Personal, Request new certificate -Choose NDES Server template, expand Details, Properties -Subject Name: Common Name, Value: Public-facing FQDN These steps seemed to work for me, but I'm not sure if they are all needed or even if they are the correct steps. I'd appreciate any comments. Thank you!
I'd just like to extend my thank you for this excellent guide.
Thanks, great guide. Got the infrastructure working to push certificates to iOS devices :)
Thanks for the great guide! I get folliwing error in IIS log: 2014-07-30 22:07:26 112.14.0.1 GET /certsrv/mscep/mscep.dllhttps:/externalFQDN.cloudapp.net/certsrv/mscep/mscep.dll/pkiclient.exe operation=GetCACert&message=MDM 443 - 158.12.123.185 - - 404 0 2 73 All other logs OK, bitt CRP.log shows only "Perf Test Hook, Challenge is read from registry" Testlab: SCCM 2012 R2 /CU2; CA; NDES with SCEP and Policy Modul Can anyone help?
Hi Christoph, It sounds like the device is not going to the correct URL (error 404). Check the URL you provided during the CRP configuration.
Hy Pwigle! Thanks for reply. Yes it was a wrong URL :( copy paste.... Now i have no errors in the log 2014-08-02 18:57:41 fe80::10b7:f62:ec3c:605d%12 POST /CMCertificateRegistration/certificate/generatechallenge - 443 - fe80::10b7:f62:ec3c:605d%12 SMS_CERTIFICATE_REGISTRATION_POINT - 201 0 0 3502 2014-08-02 14:07:40 172.16.0.8 GET /certsrv/mscep/mscep.dll/pkiclient.exe operation=GetCACert&message=MDM 443 - 144.11.115.119 - - 200 0 0 68 But in SCCM i have following error: 0X87D1FDE8 Remediation failed (Certificate Profile - Deployment) I copied the IPSec (offline request) Certificate, edit the 3 registry entries to the template Name (CustomIPSecV2). In the security tab i added the NDES Service Account for read and enrol). I deployed the Certificate Profile in SCCM.
Hi Pieter, Very good article. I was curious if you could eleborate (perhaps a link to an article/KB) on why the NDES service should be seperated from the CA issuing server as the policy module would behave unexpectedly? I was not able to find any references about that. Cheers, Roy
Hi Roy, as far as I know the reason has not been published anywhere - however I do know it simply wont work. There a are a few registry keys missing when you combine the CA and NDES on the same box. It's not tested, supported and therefore definitely not recommended. They should be on separate servers and joined to the same domain.
Fantastic article - thx alot!!!!
Thanks for the article, perhaps the fullest I seen for this type of deployment. I do have a question, I have an error in the CRPMSI log file as follows; ERROR: Certificate is not configured on the website for SSL.. The MSI fails to run. I think this is because of SSL not being enabled on the CM server? You mention a CRP certificate, does this need to have any specific EKU?
Hi S. Mason, I've seen that error. If i remember correctly you have to make sure a normale webserver certificate is imported on the configmgr server. Try adding a https binding to iis with that cert if it isn't there already.
Quick note of thanks. Your comment against my last post sorted the issue I had, CRP certificate created and policy module installed. fingers crossed the testing goes without further issue.
Hi, I did have some serious issues to generate certificates to my devices (iOS8, Android 4.4). Then I changed the policy to "include email address in subject name" and then it all started to work just fine.