ACME Certificate Enrollment: Addigy Integration
Introduction
SecureW2’s ACME service can cryptographically prove that a device is a genuine Apple product, and confirm its serial number using Apple Managed Device Attestation (MDA). MDA is what allows JoinNow Connector PKI to validate a device’s identity and cross-reference it with your MDM to ensure that only trusted devices can enroll for certificates.
Traditional SCEP implementations only require a pre-shared key for certificate issuance. With ACME, organizations can ensure that only trusted, managed devices obtain and maintain certificates that are used to access critical resources. Addigy is one of the first MDMs to develop native support for ACME, and this document will outline how Addigy customers can integrate SecureW2’s PKI services to configure ACME-based certificate enrollment.
Prerequisites
- iOS devices that support ACME protocol
- Subscription to the Addigy portal
- JoinNow Connector PKI subscription along with Enterprise Enrollment and Attestation (EEA)
Setting Up ACME in SecureW2
To set up ACME-based authentication in SecureW2, the following high-level steps are required:
Creating an Intermediate CA
As a best practice, SecureW2 recommends having a new intermediate CA for JoinNow ACME Gateway integration with Addigy.
To create a new intermediate CA:
- In the JoinNow MultiOS Management Portal, go to PKI > Certificate Authorities.
- Click Add Certificate Authority.
- In the Basic section, from the Generate CA For drop-down list, select the Device and User Authentication option to authenticate devices and users.
- From the Type drop-down list, select Intermediate CA.
- From the Certificate Authority drop-down list, select the default Root CA that comes with your organization.
- In the Common Name field, enter a name. SecureW2 recommends a name that includes ‘ACME’.
- Click Save.
Creating a Certificate Template
A certificate template determines how information is encoded in the certificate to be issued by the Certificate Authority (CA). It consists of a list of certificate attributes and how information must be encoded in the attribute values. This information is provided by the organization administrator via the JoinNow Management Portal.
SecureW2 recommends creating a separate template for each MDM platform for easier identification of different values being passed.
To create an Addigy certificate template:
- Navigate to PKI > Certificate Authorities.
- Click Add Certificate Template.
- Under the Basic section, in the Name field, enter the name of the certificate template.
- In the Subject field, enter CN=${/auth/displayName:/device/identity:/device/ clientId}.
- In the Display Description field, enter a suitable description for the certificate template.
- In the Validity Period field, type the validity period of the certificate (based on the requirement).
- From the Signature Algorithm drop-down list, select the signature algorithm for the certificate signing request. The available option is SHA-256.
- In the SAN section, enter the following for the:
- DNS field: ${/device/computerIdentity:/device/identity:/device/ buildModel}
- RFC822 field: ${/device/computerIdentity:/device/identity}
- Other Name field: ${/auth/upn:/device/identity:/device/clientId}
- URI field: Organization URL from which the client obtains the certificate.
- In the Extended Key Usage section, from the Use Certificate For list, select Client Authentication.
- Click Save.
Creating a Key Attestation Provider
A Key Attestation Provider in JoinNow helps set up ACME-based device attestation services for iOS devices.
To create a Key Attestation Provider:
- Navigate to Identity Management > Key Attestation Providers.
- Click Add Key Attestation Provider.
- Under the Basic section, in the Name field, enter a name for your Key Attestation Provider.
- In the Display Description field, enter a suitable description for the Key Attestation Provider (optional).
- From the Type drop-down list, select Apple.
- Click Save.
- Click Update.
Creating an API Token
To generate an API token:
- Navigate to Identity Management > API Gateways.
- Click Add API Gateway.
- Under the Basic section, in the Name field, enter a name for your API Gateway.
- In the Description field, enter a suitable description for the API Gateway (optional).
- From the Type drop-down list, select ACME Client Certificate Enrollment Token.
- From the Vendor drop-down list, select Addigy.
- Click Save. A .mobileconfig file is downloaded.
Creating an Identity Lookup Provider
With JoinNow, you can create a Generic HTTP based Identity Lookup Provider and integrate it with Addigy MDM for device lookup during ACME enrollment.
- Navigate to Identity Management > Identity Providers.
- Click Add Identity Provider.
- Under the Basic section, in the Name field, enter a name for your Lookup IdP.
- In the Description field, enter a suitable description for the Lookup IdP (optional).
- From the Type drop-down list, select Generic HTTP.
- Click Save.
- The page refreshes and the Configuration, API, and Attribute Mapping tabs are displayed.
- Select the Configuration tab.
- Under the Authentication section, from the Authentication Method drop-down list, select API Key.
- In the Key field, enter the key value from Addigy.
- For the Key value, navigate to Account > Integration > API Docs.
- Click Authorize and copy the value corresponding to Name.
- In the Value field, copy and paste the API Token value obtained in the Creating an API Token in Addigy section.
- Select the API tab.
- In the URI field, enter https://api.addigy.com/api/v2/mdm/devices/${identity}
- Under the Response Validation section, click Add.
- In the Response Path field, enter enrollment_profile.udid.
- From the Condition drop-down list, select Exists.
- Click Update.
Policy Management
Policy Management allows us to create specific Lookup policies, roles for users, and device groups, which can be used in SecureW2 to create custom certificate enrollment policies.
Creating an Account Lookup policy
The Account Lookup policy can be mapped along with the Addigy Identity Lookup provider created earlier for device lookup.
- Navigate to Policy Management > Account Lookup Policies.
- Click Add Account Lookup Policy.
- Under the Basic section, in the Name field, enter a name for your Account Lookup Policy.
- In the Display Description field, enter a suitable description for the Account Lookup Policy (optional).
- Click Save.
- The page refreshes and the Conditions and Settings tabs are displayed.
- Select the Settings tab.
- From the Identity Provider Lookup drop-down list, select the Lookup IdP created earlier (refer to the Creating an Identity Lookup Provider section).
- From the Lookup Type drop-down list, select Custom.
- From the Identity drop-down list, select Computer Identity.
- Click Update.
Creating a Role Policy
- Navigate to Policy Management > Policy Engine Workflows.
- Click Add Policy Engine Workflows.
- Under the Basic section, in the Name field, enter a name for your Role policy.
- In the Display Description field, enter a suitable description for the Role policy (optional).
- Click Save.
- The page refreshes and the Conditions tab is displayed.
- Select the Conditions tab.
- Under the Conditions section, from the Identity Provider drop-down list, select the API token you created in the earlier section (refer to the Creating an API Token section).
- Click Update.
Creating a Device Role Policy
The Device Role policy helps map the attestation provider in JoinNow for device attestation.
- Navigate to Policy Management > Device Role Policies.
- Click Add Device Role Policy.
- Under the Basic section, in the Name field, enter a name for your Device Role Policy.
- In the Display Description field, enter a suitable description for the Device Role Policy (optional).
- Click Save.
- The page refreshes and the Conditions tab is displayed.
- Select the Conditions tab.
- From the Identity drop-down list, select the Key Attestation Provider created earlier (refer to the Creating a Key Attestation Provider section).
- Click Update.
Creating an Enrollment Policy
- Navigate to Policy Management > Enrollment Policies.
- Click Add Enrollment Policy.
- Under the Basic section, in the Name field, enter a name for your Enrollment Policy.
- In the Display Description field, enter a suitable description for the Enrollment Policy (optional).
- Click Save.
- The page refreshes and the Conditions and Settings tabs are displayed.
- Select the Conditions tab.
- Under the Conditions section, from the Role list, select the user role policy you created in the Creating a Role Policy section.
- From the Device Role list, select the device role policy you created in the Creating a Device Role Policy section.
- Select the Settings tab.
- From the Use Certificate Authority drop-down list, select the Certificate Authority created for ACME (refer to the Creating an Intermediate CA section).
- From the Use Certificate Template drop-down list, select the certificate template created for ACME (refer to the Creating a Certificate Template section).
- Click Update.
Setting Up Certificate Enrollment via ACME in Addigy
To set up certificate enrollment via the ACME profile in Addigy:
Creating an API Token in Addigy
- Log in to Addigy portal.
- On the left pane, navigate to Account > Integrations.
- Select the V2 tab and click the New API Token button.
- On the New API Configuration page, in the Name field, enter a name for the API token.
- In the Permissions field, search for “View Devices” and select the View Devices checkbox.
- Click Add.
- The API token is displayed on the screen. Copy the token and save it on your console.
Configuring MDM Profile in Addigy
MDM profiles created in Addigy contain Payload configurations that can be assigned to a required group of devices.
To configure MDM profiles in Addigy:
- On the left pane, click Policies.
- Click New Policy.
- On the New Policy page, in the Policy Name field, enter a name for your policy.
- From the Parent Policy drop-down list, select a parent policy if required.
- Click Save.
- On the displayed page, in the left pane, navigate to Catalog > MDM Profiles.
- Click New.
- Click ACME.
- The profile page is displayed.
- Open the .mobileconfig file saved earlier from JoinNow.
- In the Payload Name field, enter a name for your payload.
- In the Client Identifier field, paste the string value corresponding to ClientIdentifier from the .mobileconfig file.
- In the Directory URL field, paste the string value corresponding to DirectoryURL.
- Enable the Hardware Bound checkbox.
- In the Key Size field, enter 384.
- From the Key Type drop-down list, select ECSECPrimeRandom.
- In the Subject field, copy the string value corresponding to Subject from the .mobileconfig file and enter CN=Subjectvalue.
- Click Create Profile. The MDM profile is created and displayed on the MDM Catalog page.
- Click the options button for the ACME profile created and select the Assignments option.
- Under the Assign to Policies section, select the policies to which the ACME profile should be assigned.
- Click Save.
Schedule a Demo
Sign up for a quick demonstration and see how SecureW2 can make your organization simpler, faster, and more secure.
Schedule NowPricing Information
Our solutions scale to fit you. We have affordable options for organizations of any size. Click here to see our pricing.
Check Pricing