Use case: Require enterprise certificates

Supported editions for this feature: Frontline Standard and Frontline Plus; Enterprise Standard and Enterprise Plus; Education Standard and Education Plus; Chrome Enterprise Premium. Compare your edition

Enterprise certificates help ensure that user devices are trusted to access services and data in your organization. In this example, you create a Context-Aware Access context condition that requires user devices to have a company-issued enterprise certificate and then enforce it in a policy. The Endpoint Verification extension reports only one enterprise certificate to the Google Admin console.

Note: Context conditions were previously referred to as access levels in the Google Admin console.

Before you begin

About certificates

  • If your company doesn't have a CA certificate and the corresponding client certificates, you can create them through the Google Cloud Certificate Authority Service.
  • Client certificates must support Client Authentication (1.3.6.1.5.5.7.3.2).
  • On Windows, client certificates must be present in the Current User certificate store. Certificates in the Local Machine certificate store can't be authenticated.

Configure certificate trust

To collect and validate the device enterprise certificate, you must upload the trust anchors used to issue the device certificate. The trust anchors are the root CA (Certification Authority) certificate and the relevant intermediate and subordinate certificates. Follow these steps:

  1. In the Google Admin console, go to Menu and then Devices and then Networks.

    Requires having the Shared device settings administrator privilege.

  2. Select the appropriate organizational unit.
  3. Do one of the following:
    • If there are no certificates In the Certificates section, click Upload certificate.
    • If there are certificates, click the Certificates section, then Add certificate.
  4. Enter the certificate name and upload the certificate.
  5. Click the Enabled for Endpoint Verification checkbox.
  6. Click Add.

Configure Chrome policy

For Endpoint Verification to search the device certificate and collect it through Chrome, you must configure the AutoSelectCertificateForURLs chrome policy.

  1. In the Admin console, go to Devices and then Chrome and then Settings and then User & Browser Settings and then Client certificates.
  2. Select the appropriate organizational unit or group.
  3. Add the AutoSelectCertificateForUrls policy, using this syntax: {"pattern":"https://[*.]clients6.google.com","filter":{"ISSUER":{"CN":"CERTIFICATE_ISSUER_NAME"}}}

    Replace CERTIFICATE_ISSUER_NAME with the common name of the issuer CA. Don't modify the value of pattern.

    During the certificate collection and validation process, the client certificate enables the actual mTLS connection to the above clients6.google.com hosts.

Verify Chrome policy configuration

  1. Navigate to chrome://policy in the browser.
  2. Verify that the configured value for AutoSelectCertificateForUrls is the value set in Step 3 in Configure Chrome policy, above.
  3. Ensure that the policy Applies to value is set to Machine. On the Chrome operating system, the value is applied to Current User*.
  4. Ensure that the Status for the policy does not have a Conflict.

    For more information on policy precedence and resolving policy conflicts, see Understand Chrome policy management.

Verify client certificate collection on device

  1. (On the endpoint) Sign in and initiate a sync using the Google Endpoint Verification extension.

    During this step, the client certificate is validated on the server side against the trust anchors uploaded in Configure certificate trust above.

  2. (Admin console) Go to Devices and then Mobile and endpoints and locate the device.

  3. Verify that the certificate is showing in the Endpoint Verification settings.

  4. Note certificate fields, such as Root CA fingerprint, Issuer string, or others on this page, and use these values to create a context condition in Configure enterprise certificate enforcement.

  5. You can use the Endpoint Verification logs to help you troubleshoot any issues. To download the logs:

    1. Right-click on the Endpoint Verification extension and then go to Options.
    2. Select Log level and then All and then Download Logs.
    3. Open a case with Google Workspace support and share the logs for further debugging.

Configure enterprise certificate enforcement

  1. In the Google Admin console, go to Menu and then Security and then Access and data control and then Context-Aware Access.

    Requires the Data security access level and rule management privileges and the Admin API groups and users read privileges.

  2. For Policies, click View all policies.
  3. At the top, next to Create policy, click the Down arrow and select Create context condition.
  4. For Details, enter a Context condition name, such as Require enterprise certificate, and an optional description.
  5. Click the Advanced tab. On this tab, you build your custom context condition in an editing window using Common Expression Language (CEL). For details, go to Create Context-Aware Access context conditions.
  6. Add the CEL expression for the condition.

    The condition can test different certificate attributes, such as verifying the fingerprint of the root CA certificate in example 1 or checking for a valid certificate from a specific issuer in example 2. For a complete list of certificate attributes you can query, go to Allow access using an enterprise certificate.

    1) Valid certificate, verified against trust anchors and signed by the company root certificate: device.certificates.exists(cert, cert.is_valid && cert.root_ca_fingerprint == "v2yJUfpL6LkfUFmKVsPr0Czj+Z0LoJzLIk3j4ffJfSg").

    Replace the root fingerprint string with the string you copied in the verify certificate step above.

    2) Valid certificate, verified against trust anchors and issued by a specific issuer: device.certificates.exists(cert, cert.is_valid && cert.issuer =="CN=BeyondCorp Demo Device Issuer CA, OU=Enterprise Device Trust, O=BeyondCorp Enterprise, ST=New Jersey, C=US").

  7. Click Create condition.

    You return to the Context conditions tab on the Policies page.

  8. For Policy status, at the top of the page, choose an option:

    • To assess a policy's impact on users before implementing the policy, select Monitor.
    • To enforce the policy immediately, select Active.
  9. If you selected Active, for Action, select Block or Warn.

  10. For User conditions, select the organizational unit or group you want to apply the policy to.

  11. Click Save.

  12. For Context conditions, click Edit. Select the context condition you created earlier, such as Require enterprise certificate.

  13. Click Save.

  14. For Apps, click Edit and select the apps for users to access. Don't assign the policy to the Google Admin console.

  15. Click Save.

  16. For What will this policy do?, review the policy summary generated by your selections.

  17. (Optional) To update components, next to a section, click Edit.

  18. Click Create policy.

Verify policy assignment

To ensure your policy is properly configured:

  1. In the Google Admin console, go to Menu and then Security and then Access and data control and then Context-Aware Access.

    Requires the Data security access level and rule management privileges and the Admin API groups and users read privileges.

  2. Click View all policies.
  3. Confirm that your policy has:
    • The correct organizational unit or group for User conditions
    • The assigned Apps and Context conditions
    • A Status set to Active or Monitor

Customize user remediation messages

To customize the messages users receive when app access is blocked:

  1. In the Google Admin console, go to Menu and then Security and then Access and data control and then Context-Aware Access.

    Requires the Data security access level and rule management privileges and the Admin API groups and users read privileges.

  2. For General settings, click View settings.
  3. Configure your message preferences:
    • Remediation messages—System-generated messages that match the policy violation that blocked access. These messages offer self-serve options so users can unblock themselves.
    • Custom messages—Specific guidance or help links provided by your organization.
    • Default message—A standard message that appears if no remediation or custom message is configured, such as Your organization's policy is blocking access to this app.

For details, go to Allow users to unblock apps with remediation messages in Context-Aware Access.