diff --git a/manifest.json b/manifest.json index 459e1df3..8e5be2cb 100644 --- a/manifest.json +++ b/manifest.json @@ -30,10 +30,6 @@ { "title": "Smallstep API", "path": "/platform/smallstep-api.mdx" - }, - { - "title": "Smallstep App", - "path": "/platform/smallstep-app.mdx" } ] }, @@ -54,6 +50,19 @@ } ] }, + { + "title": "Configure Devices for Smallstep", + "routes": [ + { + "title": "Install the Smallstep App", + "path": "/platform/smallstep-app.mdx" + }, + { + "title": "Configure Browser Certificates", + "path": "/tutorials/browser-certificate-setup-guide.mdx" + } + ] + }, { "title": "Smallstep for WPA-Enterprise Wi-Fi", "routes": [ diff --git a/platform/smallstep-app.mdx b/platform/smallstep-app.mdx index e08c142f..7ff1c613 100644 --- a/platform/smallstep-app.mdx +++ b/platform/smallstep-app.mdx @@ -1,18 +1,19 @@ --- +updated_at: April 08, 2025 title: The Smallstep App html_title: The Smallstep App description: This document specifies app download links, system requirements, runtime requirements, file permissions, and telemetry data collected for the Smallstep desktop app. --- -Smallstep ensures that access to financial data, code repositories, PII, and other sensitive resources is only possible from trusted, company-managed devices. +Smallstep ensures that access to financial data, code repositories, PII, and other sensitive resources is only possible from trusted devices. -The Smallstep desktop app is central to that process. It offers a uniform experience for device identity across macOS, Windows, and Linux, and is the foundation for Smallstep's high-assurance device identity attestation workflow, automating the issuance of certificates to devices and configuring the components that depend on these certificates. P.S: The Smallstep app operates differently for Linux. For Linux specific instructions, see [Smallstep Agent for Linux](https://smallstep.com/docs/platform/smallstep-agent). +The Smallstep desktop app offers a uniform experience for device identity across macOS, Windows, and Linux, and is foundational to Smallstep's high-assurance device attestation workflow, automating the enrollment and delivery of client certificates, and configuring the components that depend on them. -Here's all the necessary info you need to install and use the Smallstep app effectively and consciously. +The Smallstep app operates differently for Linux. For Linux specific instructions, see [Smallstep Agent for Linux](./smallstep-agent.mdx). ## Download -The Smallstep App includes the Smallstep Agent, +The Smallstep App includes the Smallstep Agent, which runs in the background. diff --git a/tutorials/browser-certificate-setup-guide.mdx b/tutorials/browser-certificate-setup-guide.mdx new file mode 100644 index 00000000..a6a94d6b --- /dev/null +++ b/tutorials/browser-certificate-setup-guide.mdx @@ -0,0 +1,226 @@ +--- +title: Configure Web Browser Certificates +updated_at: April 09, 2025 +html_title: Configure your web browsers to use Smallstep hardware-bound device identtiy certificates. +description: This tutorial describes how to set up web browsers to access resources using mutual TLS and Smallstep certificates. +--- + +## Before we begin + +Certificate-based authentication in web browsers +offers excellent security characteristics, thanks to mutual TLS. +However, the user experience has traditionally been poor, +with mysterious TLS errors, +confusing certificate selection dialogs, +and differing behaviors between browsers. + +Smallstep addresses these issues +by keeping certificates renewed, +offering simple remediation flows when an error occurs, +and ensuring that web browers are configured to find client certificates automatically, +so the user can have a seamless experience. + +Smallstep browser certificates are available for macOS, Windows, and Linux devices. + +## Before you begin + +Before you begin, make sure: + +1. Your devices are [enrolled into your Smallstep inventory](https://smallstep.com/docs/platform/enrollment-guide/). +2. Someone from [our support team](https://support.smallstep.com/kb-tickets/new) has helped you get set up. Client certificates can be used in several ways. Confirm that your Smallstep team is configured for the resource that you are using client certificates to protect. + +You will need a list of URLs that will require a client certificate on your devices. + +These URLs will vary by use case. + +## macOS + +For this tutorial, we'll assume you're using Jamf Pro as your MDM. +The steps are very similar for other MDMs, however. + +### Firefox + +#### Client certificate auto-selection + +A [configuration profile](https://support.mozilla.org/en-US/kb/customizing-firefox-macos-using-configuration-prof) can be used to set Firefox's certificate preferences +so that the Smallstep certificate is automatically selected +when a protected resource is accessed. + +1. In Jamf, navigate to **Computers > Configuration Profiles** +2. Create a new Configuration Profile and find the **Application & Custom Settings** > **Upload** page. +3. For Preference Domain, specify `org.mozilla.firefox`. +4. Create a plist file called `org.mozilla.firefox.plist`, and populate it with the following: + + ``` + + + + + EnterprisePoliciesEnabled + + PayloadDisplayName + Firefox ESR Policies + PayloadEnabled + + PayloadIdentifier + org.mozilla.firefox.BCADDC78-843E-4112-936A-DAB8EEEF514C + PayloadType + org.mozilla.firefox + PayloadUUID + BCADDC78-843E-4112-936A-DAB8EEEF514C + PayloadVersion + 1 + Preferences + + security.default_personal_cert + Select Automatically + security.osclientcerts.autoload + + + + + ``` +5. Upload the plist file to Jamf. +6. Deploy the configuration profile to your test device. + +To test the certificate, restart the browser and visit one your target URLs. + +### Chrome + +#### Client certificate auto-selection + +A [configuration profile](https://support.google.com/chrome/a/answer/9020077?hl=en) can be used to set Chrome's certificate preferences +so that the Smallstep certificate is automatically selected +when a protected resource is accessed. + +1. In Jamf, navigate to **Computers > Configuration Profiles** +2. Create a new Configuration Profile and find the **Application & Custom Settings** > **Upload** page. +3. For Preference Domain, specify `com.google.Chrome`. +4. Create a plist file called `com.google.Chrome.plist`, and populate it with the following: + + ``` + + + + + AutoSelectCertificateForUrls + + + pattern + [Server URL] + filter + + ISSUER + + CN + Smallstep [Team Slug] Accounts Intermediate CA + + + + + + + ``` + + Replace `[Server URL]` with the server that requires certificate authentication. + Replace `[Team Slug]` with your Smallstep team slug. + This field is an [Enterprise policy URL pattern](https://chromeenterprise.google/policies/url-patterns/). + + Note: According to [Understand Chrome policy management](https://support.google.com/chrome/a/answer/9037717), + Chrome will *not* merge multiple `AutoSelectCertificateForUrls` policies. + You must add all of your certificate selection preferences into a single managed configuration profile. + +5. Upload the plist file to Jamf. +6. Deploy the configuration profile to a test device. +7. On the device, restart Chrome and visit the [policies tab](chrome://policy/) to verify the applied policy. + +To test the certificate, restart the browser and visit one your target URLs. + +### Safari + +#### Client certificate auto-selection + +Safari relies on the Keychain and system-level certificate trust settings, rather than per-app policies like Chrome and Firefox. Certificate selection in Safari is mostly automatic, but it may prompt the user if multiple matching client certificates exist. Smallstep's agent will set identity preferences as needed. + +To test the certificate, restart the browser and visit one your target URLs. + +## Windows + +### Microsoft Edge and Google Chrome + +#### Client certificate auto-selection + +1. Confirm that a client certificate has been issued, run `certmgr` from PowerShell. + Look inside Certificates - Current User → Personal → Certificates. + You should see a certificate issued by a Smallstep Accounts Intermediate CA. + +2. Confirm your client certificate is visible in your browser. If not, restart the browser. + + - In Chrome, check chrome://settings/certificates. + - In Edge, check edge://settings/privacy/securitySubPage and choose "Manage certificates". + +For Chrome and Edge, we can use the [`AutoSelectCertificateForUrls`](https://chromeenterprise.google/policies/?policy=AutoSelectCertificateForUrls) policy to prevent the certificate selection dialog from appearing. + +1. Open the Registry Editor (`regedit`) +2. Navigate to to the key for your browser. + + - For Chrome, visit `HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome` + - For Edge, visit `HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Edge` + - If the key you're looking for doesn't exist, you may need to create the `Google` and `Google/Chrome` keys or the `Edge` key. + +3. In the registry path for your browser, create a new String Value named `AutoSelectCertificateForUrls` +4. Set the value to `["{\"pattern\":\"$URL\",\"filter\":{\"ISSUER\":{\"CN\":\"Smallstep $TEAM Accounts Intermediate CA\"}}}"]`, substituting `$URL` for the URL you want to use with the Smallstep client certificate, and `$TEAM` for your Smallstep team slug. +5. Restart the browser. +6. Confirm the policy change. + + - In Chrome, check chrome://policy. + - In Edge, check edge://policy. + +To test the certificate, restart the browser and visit one your target URLs. +You should not see any certificate selection dialogs. + +## Linux + +### Google Chrome + +#### Client certificate auto-selection + +We can use the [AutoSelectCertificateForUrls](https://chromeenterprise.google/policies/?policy=AutoSelectCertificateForUrls) Chrome policy to automatically select the client certificate without presenting a dialog: +1. As root, create a policy file: `/etc/opt/chrome/policies/managed/auto_select_cert.json` +2. Add the following content: + + ``` + { + "AutoSelectCertificateForUrls": ["{\"pattern\":\"$URL\",\"filter\":{\"ISSUER\":{\"CN\":\"Smallstep $TEAM Accounts Intermediate CA\"}}}"] + } + ``` + + Replace `$URL` with the server that requires certificate authentication. + Replace `$TEAM` with your Smallstep team slug. + For example: + + ```json + { + "AutoSelectCertificateForUrls": ["{\"pattern\":\"https://example.id.smallstep.com\",\"filter\":{\"ISSUER\":{\"CN\":\"Smallstep example Accounts Intermediate CA\"}}}"] + } + ``` + +3. Restart Chrome, and visit the [policies tab](chrome://policy) to verify the applied policy. + +Finally, let's verify that the user has a client certificate from the Smallstep agent. + +Restart Chrome, and verify that the client certificate is in Chrome's Certificate Manager +Don't see it? Check that the Smallstep agent is installed correctly. + +To test the certificate, restart the browser and visit one your target URLs. +You should not see any certificate selection dialogs. + +### Firefox + +#### Client certificate auto-selection + +Use the about:certificate URL to see all of the client certificates installed in Firefox's certificate database. + +To test the certificate, restart the browser and visit one your target URLs. +You should not see any certificate selection dialogs. +