---
title: Certificate authentication device enrollment
description: This section provides an example of the mobile device enrollment protocol using certificate authentication policy.
ms.assetid: 57DB3C9E-E4C9-4275-AAB5-01315F9D3910
ms.reviewer:
manager: dansimp
ms.author: dansimp
ms.topic: article
ms.prod: w10
ms.technology: windows
author: dansimp
ms.date: 06/26/2017
---
# Certificate authentication device enrollment
This section provides an example of the mobile device enrollment protocol using certificate authentication policy. For details about the Microsoft mobile device enrollment protocol for Windows 10, see [\[MS-MDE2\]: Mobile Device Enrollment Protocol Version 2](https://go.microsoft.com/fwlink/p/?LinkId=619347).
> [!Note]
> To set up devices to use certificate authentication for enrollment, you should create a provisioning package. For more information about provisioning packages, see [Build and apply a provisioning package](/windows/configuration/provisioning-packages/provisioning-create-package).
## In this topic
- [Discovery service](#discovery-service)
- [Enrollment policy web service](#enrollment-policy-web-service)
- [Enrollment web service](#enrollment-web-service)
For the list of enrollment scenarios not supported in Windows 10, see [Enrollment scenarios not supported](mobile-device-enrollment.md#enrollment-scenarios-not-supported).
## Discovery Service
The following example shows the discovery service request.
```xml
POST /EnrollmentServer/Discovery.svc HTTP/1.1
Content-Type: application/soap+xml; charset=utf-8
User-Agent: Windows Enrollment Client
Host: EnterpriseEnrollment.Contoso.com
Content-Length: xxx
Cache-Control: no-cache
http://schemas.microsoft.com/windows/management/2012/01/enrollment/IDiscoveryService/Discover
urn:uuid: 748132ec-a575-4329-b01b-6171a9cf8478
http://www.w3.org/2005/08/addressing/anonymous
https://ENROLLTEST.CONTOSO.COM/EnrollmentServer/Discovery.svc
user@contoso.com
101
10.0.0.0
3.0
10.0.0.0
Certificate
```
The following example shows the discovery service response.
```xml
HTTP/1.1 200 OK
Content-Length: 865
Content-Type: application/soap+xml; charset=utf-8
Server: EnterpriseEnrollment.Contoso.com
Date: Tue, 02 Aug 2012 00:32:56 GMT
http://schemas.microsoft.com/windows/management/2012/01/enrollment/IDiscoveryService/DiscoverResponse
d9eb2fdd-e38a-46ee-bd93-aea9dc86a3b8
urn:uuid: 748132ec-a575-4329-b01b-6171a9cf8478
Certificate
3.0
https://enrolltest.contoso.com/ENROLLMENTSERVER/DEVICEENROLLMENTWEBSERVICE.SVC
https://enrolltest.contoso.com/ENROLLMENTSERVER/DEVICEENROLLMENTWEBSERVICE.SVC
```
## Enrollment policy web service
The following example shows the policy web service request.
```xml
POST /ENROLLMENTSERVER/DEVICEENROLLMENTWEBSERVICE.SVC HTTP/1.1
Content-Type: application/soap+xml; charset=utf-8
User-Agent: Windows Enrollment Client
Host: enrolltest.contoso.com
Content-Length: xxxx
Cache-Control: no-cache
http://schemas.microsoft.com/windows/pki/2009/01/enrollmentpolicy/IPolicy/GetPolicies
urn:uuid:72048B64-0F19-448F-8C2E-B4C661860AA0
http://www.w3.org/2005/08/addressing/anonymous
https://enrolltest.contoso.com/ENROLLMENTSERVER/DEVICEENROLLMENTWEBSERVICE.SVC
B64EncodedSampleBinarySecurityToken
WindowsMobile
Core
9.0.9999.0
MY_WINDOWS_DEVICE
FF:FF:FF:FF:FF:FF
49015420323756
Lite
WindowsPhone
10.0.0.0
7BA748C8-703E-4DF2-A74A-92984117346A
```
The following snippet shows the policy web service response.
```xml
HTTP/1.1 200 OK
Date: Fri, 03 Aug 2012 20:00:00 GMT
Server:
Content-Type: application/soap+xml
Content-Length: xxxx
http://schemas.microsoft.com/windows/pki/2009/01/enrollmentpolicy/IPolicy/GetPoliciesResponse
d4335d7c-e192-402d-b0e7-f5d550467e3c
urn:uuid: 69960163-adad-4a72-82d2-bb0e5cff5598
0
3
2048
0
1.3.14.3.2.29
1
0
szOID_OIWSEC_sha1RSASign
```
## Enrollment web service
The following example shows the enrollment web service request.
```xml
POST /EnrollmentServer/DeviceEnrollmentWebService.svc HTTP/1.1
Content-Type: application/soap+xml; charset=utf-8
User-Agent: Windows Enrollment Client
Host: enrolltest.contoso.com
Content-Length: 3242
Cache-Control: no-cache
http://schemas.microsoft.com/windows/pki/2009/01/enrollment/RST/wstep
urn:uuid:0d5a1441-5891-453b-becf-a2e5f6ea3749
http://www.w3.org/2005/08/addressing/anonymous
https://enrolltest.contoso.com:443/ENROLLMENTSERVER/DEVICEENROLLMENTWEBSERVICE.SVC
2014-10-16T17:55:13Z
2014-10-16T17:57:13Z
B64EncodedSampleBinarySecurityToken
MessageDigestValue
SignedMessageBlob/ds:SignatureValue>
http://schemas.microsoft.com/5.0.0.0/ConfigurationManager/Enrollment/DeviceEnrollmentToken
http://docs.oasis-open.org/ws-sx/ws-trust/200512/Issue
DER format PKCS#10 certificate request in Base64 encoding Insterted Here
10.0.0.0
MY_WINDOWS_DEVICE
FF:FF:FF:FF:FF:FF
CC:CC:CC:CC:CC:CC
49015420323756
Full
7BA748C8-703E-4DF2-A74A-92984117346A
3J4KLJ9SDJFAL93JLAKHJSDFJHAO83HAKSHFLAHSKFNHNPA2934342
True
```
The following example shows the enrollment web service response.
```xml
HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 10231
Content-Type: application/soap+xml; charset=utf-8
Server: Microsoft-IIS/7.0
Date: Fri, 03 Aug 2012 00:32:59 GMT
http://schemas.microsoft.com/windows/pki/2009/01/enrollment/RSTRC/wstep
urn:uuid:81a5419a-496b-474f-a627-5cdd33eed8ab
2012-08-02T00:32:59.420Z
2012-08-02T00:37:59.420Z
http://schemas.microsoft.com/5.0.0.0/ConfigurationManager/Enrollment/DeviceEnrollmentToken
B64EncodedSampleBinarySecurityToken
0
```
The following example shows the encoded provisioning XML.
```xml
```