How CAC and PIV login for Mattermost works and when teams need it
Teams that must sign people in with a Common Access Card or PIV credential first need to know that Mattermost does not read smart cards directly. Card-based sign-in reaches Mattermost through two separate paths. For the web client, the card is presented to a SAML identity provider, which then asserts the user's identity to Mattermost. For web and desktop clients, mutual TLS client certificates can be checked at the NGINX reverse proxy in front of the server, so a user without a valid certificate never reaches the login page. The two paths do different jobs, so you will need to decide which one establishes identity and which one only controls access.
Teams usually need this design when policy requires card-bound authentication for a system that holds controlled information. NIST SP 800-53 Rev. 5 selects identification and authentication controls at each baseline, and the FBI CJIS Security Policy version 6.1, effective 26 June 2026, requires FIPS 140-3 certified modules or FIPS 197 AES with 256-bit keys for criminal justice information outside physically secure locations. Mattermost lists FIPS 140-3 compliance among its Enterprise plan features and documents migration to FIPS-compliant images, so confirm the plan level and image choice before you design the login path. Whether FedRAMP applies depends on whether the service is offered as a shared cloud service, so ask your authorizing official to confirm the scope.
Two constraints should be confirmed before design work begins. First, mobile app support: check Mattermost's current documentation to see whether the iOS and Android apps can authenticate with a client certificate or a card at all, and decide what phone users will do if they cannot. This determines whether mobile access can fall under a card-only policy. Second, the v11 line: confirm which card-related settings and proxy behavior apply to the exact version you run. Mattermost v11.7 is the Extended Support Release, supported until 2027-05-15, while v11.11 reaches end of support on 2026-12-15, so the version you choose sets how long the design remains supported. Review the Mattermost server releases page before you commit to a version.
How a card sign-in reaches Mattermost
The sign-in starts in the user's browser or desktop app, which presents a CAC or PIV certificate during a mutual TLS handshake at the NGINX proxy. The proxy validates the client certificate before requests reach Mattermost, so an unvalidated client never gets past the edge. Authentication requests then go to the SAML identity provider, which performs the card authentication itself. The identity provider returns a signed SAML assertion through the browser, and Mattermost signs the user in only after validating that assertion. Check each boundary separately: certificate validation at the proxy, card authentication at the identity provider, and assertion validation at Mattermost.
Trust boundaries between the proxy, identity provider and Mattermost during a card sign-in.
Which sign-in path fits each Mattermost client
In the browser path, the user presents the CAC or PIV credential to the identity provider, not to Mattermost. The identity provider authenticates the card and returns a SAML assertion, and Mattermost validates that assertion before it matches the user to an account and starts a session. Mattermost never handles the card itself.
- What the user presents: the card and PIN at the identity provider's sign-in page, after which the browser returns to the Mattermost site URL with the assertion.
- What the server checks: the assertion signature against the identity provider's certificate, the audience and recipient values, and the attribute that maps the assertion to an existing Mattermost account.
- What the identity provider must do: require certificate-based authentication for this application and send the subject attribute that Mattermost expects, using the SAML single sign-on guide as the reference for field names.
- What to confirm: the SAML settings in the System Console for your server version, and that your identity provider documents certificate login for your card type and issuing authority.
Before relying on this path, sign in with a valid test card and confirm that an expired or revoked credential is refused at the identity provider.
In the mutual TLS path, NGINX terminates TLS in front of Mattermost and requests a client certificate during the handshake. The browser or desktop app presents the certificate, and NGINX validates it against the trusted certificate authority chain before it forwards any request. The proxy is the enforcement point, so the design depends on how it is configured and how identity information reaches Mattermost.
- What the user presents: a client certificate from the card or a PIV-derived credential, selected by the operating system during the TLS handshake.
- What NGINX checks: the chain to the trusted CA bundle, the validity dates, and revocation status if you configure a certificate revocation list. Review the client verification directives and the CA file path in your configuration.
- What Mattermost checks: the requests it receives from the proxy, including any identity headers the proxy adds. Confirm whether Mattermost still requires its own sign-in once the proxy accepts the certificate, and how it treats forwarded headers.
- What to confirm: whether each desktop app version prompts for and forwards the client certificate on every operating system you support, and how your proxy handles WebSocket connections.
Test web and desktop clients with a valid, expired and revoked certificate, and confirm that each one fails at the proxy as you designed it.
Mobile is the path where the stated limits matter most. Before you plan a mobile rollout, confirm in the release notes for your server version and your iOS and Android app builds whether a card or client certificate can be presented during the proxy handshake, and whether card-based SAML sign-in completes inside the app's browser view. Do not assume that the browser or desktop design carries over unchanged.
- What the user presents: this depends on the app build and the mobile operating system, so confirm whether a card or certificate can be presented at all.
- What the server checks: the same proxy and identity provider checks as the other paths, but only if the client completes the handshake or sign-in flow.
- Version limits: the mobile restrictions for CAC and PIV sign-in vary by release, so confirm them in the notes for your exact server and app version, including any v11 limits that apply to your build.
- Fallback design: decide in advance whether mobile users will use a different sign-in method, a managed device profile, or no mobile access to sensitive channels, and write that decision into the access policy. Mattermost publishes server releases on the 16th of each month, so recheck this path after each upgrade in the server releases list.
Test on the exact operating system versions and app builds you plan to deploy, not on a sample device.
Configuration options and when each fits
This table compares three ways to put CAC or PIV sign-in in front of Mattermost: SAML through an identity provider, mutual TLS at the NGINX proxy, and a combined design. Read each column against your own user population, since the right choice depends on which clients your people use and where you want certificate validation to happen. Confirm every product capability with Mattermost and your identity provider vendor before you commit to a design.
| Option | SAML identity provider path | NGINX mutual TLS path | Combined design |
|---|---|---|---|
| Client coverage | Browser sign-in through the identity provider; confirm desktop app behavior with the vendor | Web and desktop clients that present a client certificate; confirm mobile app support with the vendor | Browser and desktop coverage from both layers; mobile coverage needs confirmation before rollout |
| Where certificate validation happens | At the identity provider, which checks the card and issues the SAML assertion | At the NGINX proxy, which requires and verifies the client certificate before traffic reaches Mattermost | At both points, so a failure in either layer blocks sign-in |
| What changes for administrators | Identity provider configuration, SAML settings in the System Console, and attribute mapping for email and username | Proxy configuration, trusted certificate authority chain, and certificate revocation checks you must define | Maintains both identity provider and proxy configuration, so changes must be tested together |
| Main trade-off | Relies on the identity provider's card handling and assertion trust; account lifecycle depends on how the provider syncs | Strong gate at the network edge, but Mattermost itself sees the proxy identity, so account mapping needs careful design | Strongest assurance on paper, with the highest operational load and the most failure points to test |
| Confirm with vendor | Whether your card type and middleware work with the chosen identity provider | Which Mattermost clients accept proxy-presented certificates and how sign-in then maps to a user | Whether the two layers can coexist for the same user without duplicate accounts |
Setting up CAC and PIV sign-in in sequence
This sequence moves a Mattermost deployment from a planned client matrix to verified card-based sign-in on web, desktop and mobile. Each step closes with a check so the security and identity owners can confirm the result before users are moved over. The order matters because the proxy, the identity provider and the account mapping all depend on the steps before them.
Confirm the client matrix and version limits
Your security owner and the Mattermost administrator list every client that must sign in: browser, desktop app and mobile app. For each client, record the server version, the sign-in path (SAML through the card-backed identity provider, or certificate presentation at the proxy) and any known limits from the Mattermost release notes for the version you plan to run. Confirm the v11 limits with Mattermost before design starts, since this topic's supplied facts do not cover them in detail. Done when a signed matrix exists and every client has a named sign-in path or a documented gap.
Configure SAML sign-in with card authentication
The identity team configures the SAML identity provider so that card authentication (CAC or PIV) is the required first factor, then connects it to Mattermost using the System Console SAML settings. Follow the Mattermost SAML single sign-on documentation for the required certificate, assertion and attribute settings. Confirm that the assertion carries the email, username and a stable identifier for each user. Done when a test user holding a card can complete a SAML login on a staging server and land in an active Mattermost session.
Configure NGINX to request client certificates
The platform team places NGINX in front of Mattermost and enables client certificate verification, so the proxy asks for a certificate during the TLS handshake and checks it against the trusted CA chain. Keep the Mattermost server behind this proxy and confirm the directives your NGINX version supports, validating the configuration with
nginx -tbefore reloading. Decide whether the certificate is required on every route or only on sign-in routes, and record that choice. Done when a connection without a certificate is refused and a connection with a certificate from a trusted issuer reaches the login page.Load the trusted CA chain and revocation checks
The PKI owner supplies the complete issuing chain, including intermediate certificates, in the file NGINX reads for client verification. The team confirms with the PKI owner which revocation method your policy requires, such as a certificate revocation list or an online status check, and confirms that your NGINX build supports it. Include a process for updating the chain when issuing authorities change. Done when a certificate from an untrusted issuer is rejected, and a certificate that the PKI owner has revoked for testing is also rejected.
Align user identifiers and attributes
The identity and Mattermost administrators decide which certificate field, SAML attribute or NameID value identifies each person, and they confirm that the value does not change when a user renews a card or changes role. They then compare the certificate subject and the SAML attributes for several test users to make sure each person maps to one Mattermost account. Remove or merge any duplicate accounts created during testing. Done when the same test user signs in through the web and SAML paths and resolves to a single account with the expected email and username.
Test the web sign-in path end to end
The Mattermost administrator runs the full browser flow with test cards: the proxy certificate check, the identity provider login, the return to Mattermost and a normal session. Check that signing out ends the Mattermost session, that a card removed from a test user's account no longer works, and that the user is not asked for a second factor the identity provider has already enforced. Record each result against the matrix. Done when every test case for the browser passes and the results are filed with the client matrix.
Test the desktop app separately
The team tests the desktop app on the operating systems in the matrix, because certificate prompts and the embedded sign-in window can behave differently from a browser. Confirm whether the app presents the card certificate at the proxy, whether it needs a forms-based login path, and how it handles an expired or removed card. Verify the vendor documentation for the desktop version in use before relying on any specific behavior. Done when each supported operating system has a recorded pass or a documented fallback.
Test mobile and document the limits
Mobile apps often handle client certificates differently from desktop browsers, so the team tests the iOS and Android apps on their own, using a card or a certificate source that the device can access. Confirm with Mattermost which mobile sign-in methods the version you run supports, and document any mobile path that cannot present a card certificate, along with the fallback and who approves it. Update the matrix and send it to the security owner for sign-off. Done when mobile results are recorded, each gap has a named owner and approval, and the matrix reflects the tested state.
Security and operational risks to control
Card-based sign-in moves trust into certificates, revocation services and the proxy layer that presents them. The controls below cover the places where that trust can quietly fail, and each one needs an owner and a recurring check.
Certificate revocation checking
A revoked card must stop working in Mattermost, so the proxy or identity provider has to check revocation status on every sign-in, not only at issuance. Confirm whether your setup uses OCSP, CRL distribution points or both, and test what happens when the responder is unreachable. Decide whether the proxy fails closed, which is safer, or accepts the certificate, which keeps users working during an outage. Write that decision down and test it with a revoked test certificate before go-live.
SAML SSO docsCA trust chain maintenance
The NGINX proxy and the SAML identity provider must trust the same issuing authorities, including intermediates. Keep a versioned inventory of the root and intermediate CA bundles on every proxy node and in each high availability node, and record who approves changes. Bundles drift when one node is updated and another is not, which produces sign-in failures that appear only on some nodes behind the load balancer.
Certificate expiry and renewal
Expired server certificates break the TLS endpoint, and expired or rotated signing certificates break SAML trust. Build an inventory of every certificate in the path, with expiry dates and owners, and alert well before each one expires. Rotation of the SAML encryption and signing certificates must be coordinated with the identity provider, since a mismatch stops sign-in for everyone at once.
Logging card-based sign-ins
Record which certificate, subject and identity provider assertion produced each session, and retain those records under your audit policy. Confirm which fields the proxy and Mattermost logs expose, and whether the identity provider logs the authentication event with the card identifier. Without that trail, an investigation cannot tie a session to a specific card after it is revoked or reissued.
Fallback to password login
If password or email login remains enabled, a user who cannot present a card can still sign in with a weaker factor, which defeats the purpose of card authentication. Review the System Console authentication settings and confirm that the enabled methods match your policy. Test the proxy and identity provider paths for desktop and web clients separately, because a fallback on one client path can leave the others unaffected.
High availability and proxy consistency
In a high availability deployment, every proxy node and application node must enforce the same certificate rules, or sign-in behavior depends on which node receives the request. Keep proxy configuration under version control and deploy it to all nodes together. FIPS 140-3 availability depends on plan level: the pricing page places FIPS 140-3 compliance in the Enterprise tier, so confirm your plan and image before treating cryptographic module validation as in place.
High availability docsWhy federal and defense frameworks shape the design
The control baseline you are assessed against decides how strict the authentication and encryption design has to be. NIST SP 800-53 Revision 5 is the federal control catalog, and SP 800-53B selects low, moderate and high baselines of 149, 287 and 370 controls and enhancements respectively. Identification and authentication controls in whichever baseline applies will shape whether a CAC or PIV certificate is accepted at the proxy, whether the Mattermost account is tied to a verified identity through SAML, and how sessions and certificate revocation are handled. Confirm with your authorizing official or assessor which baseline applies to the Mattermost system before you choose a design, because the same architecture can satisfy one baseline and fall short of another.
If the deployment holds criminal justice information, the FBI CJIS Security Policy adds cryptography requirements that affect the design directly. Version 6.1, which took effect on 26 June 2026, requires FIPS 140-3 certified modules or FIPS 197 AES with at least 256-bit keys for CJI in transit and at rest outside physically secure locations. That reaches the TLS termination point at NGINX, the SAML assertion encryption, and the storage and backups of the Mattermost database and file store. Ask your team which cryptographic modules the proxy, the identity provider and the Mattermost build use, and whether a FIPS-compliant image is needed. Mattermost lists FIPS 140-3 compliance as an Enterprise plan feature, so check licensing before you commit to the design.
Controlled unclassified information handled on a non-federal system falls under NIST SP 800-171 through 32 CFR 2002.14(h)(2), and a defense contractor's cloud use is governed by the CMMC rule in 32 CFR 170.17(c)(5). For this topic, the practical effect is scope. DeployOpen prepares configurations, logs and evidence for assessments, but it does not issue audit reports or certifications, and independent assessors make those determinations. Your authorization boundary, meaning the components that store, process or transmit the regulated data, determines which proxies, identity providers, certificate authorities and administrator workstations must meet these requirements. Map that boundary with your compliance lead before implementation begins, since the scope of work and the evidence you need follow from it.
Limits to confirm in your environment
CAC and PIV sign-in touches the identity provider, the reverse proxy, the client apps and the Mattermost release you run, and each one changes what is possible. The items below are not settled facts for this page, so confirm each against current vendor documentation before you write the design.
Mobile app card support
Confirm whether the Mattermost iOS and Android apps can authenticate with a smart card or client certificate at all. Most mobile sign-in paths rely on the identity provider's web flow rather than the device's card reader, so a CAC or PIV user may need a different sign-in method on phones. Ask the vendor to state this in writing for the exact app versions your users will install, and plan a fallback or a restricted mobile policy if the answer is no.
SAML SSO docsBehavior under v11 and current releases
Confirm how client certificate handling and SAML sign-in behave in the Mattermost v11 line and in the release you plan to run. Check whether the release you pick is an Extended Support Release, because support windows differ. Record the exact server version, proxy configuration and identity provider settings you tested, since a later monthly release can change them.
- v11.7 ESR support ends
- 2027-05-15
Desktop app login behavior
Confirm how the Mattermost desktop app handles the browser-based SAML flow and the mutual TLS handshake with the NGINX proxy. Desktop clients may open an embedded window that does not present the card certificate the way a standard browser does. Test each desktop platform your users run, including the forms-based or browser-hand-off options, and record which steps require the card PIN.
SAML provider support for card attributes
Confirm that your identity provider can pass the certificate-derived identifiers, such as the EDIPI or the subject name, as SAML attributes that Mattermost maps to the username or ID. Not every SAML provider supports certificate-based authentication or custom claim rules in the same way. Ask the provider for its documented method and test a non-production user before you map attributes in the System Console.
Plan level needed for SSO
Confirm which Mattermost plan includes the SSO features your design uses, including SAML and any certificate-related options. The public pricing page states that SSO is included from the Professional plan, but you should verify the current plan matrix and whether the features you need sit in the same tier. Request the plan in writing as part of the quote, because a higher tier may be required for high availability or FIPS.
Mattermost pricingProxy and certificate lifecycle
Confirm how your NGINX configuration handles client certificate verification, certificate revocation checks and trust chain updates for your agency or organization. Mutual TLS settings affect every client, including those that do not use cards, so test non-card users too. Document who renews the trust bundle and how revoked credentials are removed from access.
Questions buyers ask before hiring help with CAC and PIV login
What drives the cost of CAC and PIV login work for Mattermost?
The cost depends mostly on how many identity providers, client types and certificate authorities are involved, because each one adds configuration, testing and support work. A single SAML identity provider that issues CAC-backed sign-in, with one NGINX proxy for web and desktop, is a much smaller job than several providers with mutual TLS on every client path. Cost also rises when the organization must test revocation checks, certificate chain changes and user lockout handling. Ask any provider for a written scope that lists each identity provider, each client path, each certificate authority and each environment (test and production), and whether the quote covers testing and handover. DeployOpen quotes follow from the written scope and are not published as a price list.
How long does a CAC or PIV login project usually take?
Duration depends on the same factors that drive cost: the number of identity providers, the number of client types, and how quickly your certificate authority and identity teams can supply trust chains, test accounts and change approvals. Mutual TLS at the proxy is often the step that needs the most coordination, because it touches network, certificate and application owners at once. Ask for a timeline tied to written milestones, and check which of your teams must be available for each one. DeployOpen does not publish fixed durations, so a timeline comes from the agreed scope and your environment.
What does our own team need to provide for the engagement?
Most of the effort that cannot be outsourced sits with your own staff. Expect to need identity administrators who can configure the SAML identity provider and its attribute statements, PKI or certificate authority contacts who can supply the trusted CA chain and explain certificate policies, network staff who control the NGINX proxy and its certificate exposure, and a Mattermost administrator who can test and approve System Console changes. You should also provide test users with CAC or PIV cards, a non-production environment, and a named approver for security and change decisions. Confirm these roles before the work starts so that no step waits on someone who was never assigned.
Can our internal team set up CAC and PIV login without outside help?
An internal team with identity, PKI, proxy and Mattermost skills can do this alone, and some organizations prefer that for control and knowledge transfer. The harder parts are usually the ones that cross teams: getting the identity provider to pass the right certificate attributes, configuring mutual TLS so that web and desktop clients behave consistently, and documenting the mobile app limits so users are not surprised. Before deciding, check whether your team has done mutual TLS at the proxy and SAML assertion testing in the last few years, and whether it can keep up with monthly Mattermost server releases. Outside help is most useful for a fixed-scope build with a handover, not for ongoing ownership.
What does a fixed-scope CAC and PIV engagement cover?
A fixed-scope engagement is agreed in writing before work starts and lists the scope, deliverables and timeline. For this topic, that typically means reviewing your identity provider and certificate authority setup, configuring the SAML path for CAC sign-in, configuring mutual TLS at the NGINX proxy for web and desktop clients, testing sign-in and rejection cases, documenting the mobile app and v11 limits, and handing over configuration and runbooks. The scope should also state what is excluded, such as changes to your PKI, your identity provider's enterprise policy or mobile device management. Ask for the exclusions in writing as well as the inclusions.
Which parts of CAC and PIV login are the riskiest to get wrong?
The main risks are lockouts, accepting certificates that should be rejected, and leaving a gap where a client path bypasses the intended control. Mutual TLS mistakes at the proxy can block desktop or web users in ways that look like general outages, so a rollback plan and a test group matter. Trust chain errors can also mean that revoked or foreign certificates are accepted, so ask how revocation checking is handled in your environment. Confirm these items with your security team and your certificate authority rather than relying on assumptions about how a given setup behaves.
Does the mobile app support CAC or PIV login in the same way?
Do not assume it does. The mutual TLS work at the NGINX proxy applies to web and desktop access, and the mobile app limits differ, so the scope for mobile should be confirmed against the Mattermost documentation for the server version you run. Ask the provider to state, in writing, which client types the engagement covers and what users on mobile will do instead, such as a different sign-in path or a documented exception. Check this early, because it changes user guidance and possibly your policy decisions.
Phases from scoping to rollout
The path starts by scoping the client mix (web, desktop and mobile) and the Mattermost plan level, because those decide which sign-in options are available. The team then chooses one identity path: CAC through the SAML identity provider, or mutual TLS client certificates at the NGINX proxy. Both paths converge on testing each client separately, since web, desktop and mobile sign-in behave differently. Confirm mobile sign-in against the v11 limits before any pilot. The pilot runs with monitoring in place before wider rollout.
Delivery path from scoping through monitored rollout.
How DeployOpen scopes and delivers this work
DeployOpen works as a self-hosted implementation partner inside your own infrastructure, so the Mattermost server, the NGINX proxy, the certificate trust chain and the identity provider integration all run where your security team can review them. Before work starts, the scope is written down: which Mattermost deployment is covered, which identity provider signs users in through CAC or PIV, whether mutual TLS applies to the web and desktop clients only, what the mobile position is for your users, and which tests and evidence are delivered. Most engagements are fixed-scope, so the deliverables and timelines are agreed in writing before configuration begins, and the quote follows from that written scope.
Delivery covers the configuration and testing of each piece in your environment: the SAML integration and attribute mapping, the client certificate verification and revocation settings at the proxy, the System Console and proxy changes, and the negative tests that show an unauthenticated or wrongly issued certificate is refused. Confirm early whether your identity provider and proxy versions are the ones your scope assumes, and whether your PKI team will supply the trust anchors and revocation endpoints. DeployOpen prepares the configuration records, test results and access evidence that your compliance team and independent assessors will ask for. It does not issue audit reports, attestations or certifications; those come from the assessor or certification body you engage.
Optional retainers cover the ongoing work that follows go-live: planning and testing Mattermost upgrades, rechecking the proxy and certificate settings after each change, and continuous testing of the sign-in path. Ask any partner, DeployOpen included, to state in the quote which of these items are one-time, which recur, and who holds the administrator credentials and private keys after handover.

