MISP client certificate authentication

MISP's CertAuth plugin lets users sign in with X.509 client certificates, which suits smart card and PKI environments. This page covers how it works, the settings to decide, setup order and the limits to confirm.

On this page

How MISP client certificate authentication works and when to use it

Choose certificate login when your organisation already issues user certificates from an internal PKI or runs a smart card programme, and you want MISP access tied to that identity rather than to a password. The CertAuth plugin does not check the certificate itself. According to its README, a front-end server such as a web server must verify the client certificate against the trusted certificate authorities and then pass the certificate details to PHP as SSL_CLIENT values. MISP then reads those values and matches them to a user. This means the security of the login depends as much on the web server configuration as on MISP, so the server team needs to own that part of the design from the start.

The plugin maps certificate fields such as the organisation (O) and email address to MISP user properties, so the field you choose to match on has to be stable and unique in your PKI. Decide which certificate fields identify a user, which identify their MISP organisation, and what happens when a valid certificate has no matching MISP account. The README states that new users receive role_id 6 (read only) by default. Confirm that value against your MISP version and your role definitions before go-live, and decide who raises a user's role afterwards. Certificate login fits best where the PKI is already the system of record for staff identity and smart cards are mandatory. Where your users sign in through a central identity provider, a federated login plugin is usually easier to run and support.

Treat the exact behaviour as something to confirm, not assume. Check the CertAuth README for the branch that matches the MISP release you deploy, test a certificate from each trusted CA, and confirm how revoked and expired certificates are rejected at the front end, since MISP itself will not do that check. Ask your PKI team who maintains the trusted CA bundle and how revocation is published, because that process will recur for as long as the login runs.

How a client certificate reaches a MISP session

The request starts in the user's browser, which presents a client certificate during the TLS handshake. The front-end web server is the trust boundary: it verifies the certificate against the trusted CA and only then passes the SSL_CLIENT values to PHP. CertAuth reads those values, maps certificate fields such as O and emailAddress to a MISP user and organisation, and either starts the session or refuses the login. Check the trusted CA chain and the header hand-off first when logins fail.

Client certificate login path, with the front-end server as the trust boundary.

Configuration decisions for CertAuth and when each fits

This table compares the main CertAuth configuration decisions, from which CA certificates the front-end server trusts to how new users are created and which role they start with. Read each row as a choice you make before go-live, with the conditions that favor it and what to confirm in the CertAuth README and your front-end server documentation.

DecisionOption and when it fitsTrade-offWhat to confirm
Trusted CA certificatesTrust only the CA chain that issues your smart cards or PKI user certificates. Fits single-PKI environments where one issuing authority covers all MISP users.A narrow trust store limits who can present a valid certificate, but a broad one lets certificates from other issuers reach the login step.Which CA files the front-end server verifies against, and how it rejects unverified certificates before PHP sees them.
Certificate-to-user mappingMap the O field to the organisation and emailAddress to the user email. Fits environments where the certificate already carries a reliable organisation and mailbox value.Mapping depends on certificate content your PKI issues. If the O or emailAddress values are inconsistent across issuers, users may be matched to the wrong organisation.Exactly which certificate fields the plugin reads, and the mapping keys in its configuration as documented in the README.
Creating new usersLet CertAuth create accounts on first login. Fits larger populations where onboarding through the API would be slow to maintain.Automatic creation removes the manual step, so a valid certificate from a trusted CA can create an account without a separate review.Whether the plugin creates users automatically or only pairs with existing ones, and what your review process is for new accounts.
Pairing with existing accountsMatch certificates to pre-created MISP users. Fits when organisation admins already manage accounts and you want access tied to an approved list.More administrative work at onboarding, but each certificate maps to a deliberately created account.How pairing is keyed (for example by email) and what happens when no matching account exists.
Default role for new usersKeep role_id 6 (read only) as the default. Fits most deployments, where users start with read access and admins elevate them afterwards.Read only limits risk from new accounts, but users may need elevation before they can contribute events.Whether your site has changed the default role and that role_id 6 still matches your role model.
Mixed authenticationAllow certificate login alongside password or other plugins. Fits transitional rollouts or break-glass access for admins.Keeping a second login path widens the attack surface and can bypass certificate policy if not restricted.How the front-end server applies certificate checks per path, and which fallback logins remain enabled.

Mapping certificate fields to MISP users and organisations

CertAuth decides who a certificate holder is in MISP by reading fields from the certificate and matching them to user properties, so the field values you configure must match exactly what your PKI writes into certificates. The CertAuth README gives examples such as the O (organisation) and emailAddress fields. Before you write any mapping, take the certificate subject and issuer from real certificates issued by each CA that will sign user certificates, and compare them with how your organisations are named in MISP. Organisation names that differ in case, punctuation or abbreviation from the certificate value will cause users to land in the wrong organisation or fail to match at all.

Duplicate or ambiguous names carry the larger risk. If two issuing CAs, two business units or a legacy and a current PKI write the same organisation string, or if one person holds certificates with different email addresses over time, a login can be attached to an account that belongs to someone else or to an organisation that should not see the data. Check uniqueness across all issuing CAs you trust, and decide in advance which field is authoritative for identity. Avoid relying on a free-text field that users or certificate templates can change without review. Sampling should cover renewed certificates and any certificates from delegated or subordinate CAs, not only the newest issuance.

Fields that are not listed in the README need confirmation before rollout. Check the CertAuth plugin code and your test instance for any additional mapping options in the version you run, and confirm with your PKI team which subject attributes and certificate extensions your templates populate. Also confirm how your front-end server passes certificate values to PHP, since the mapping only works on values that reach MISP intact. Record the tested mapping and the sample certificates used, so an auditor or future administrator can see how identities were established.

Choosing certificate login for each environment

In smart card and government PKI deployments, the certificate is usually issued to a person on a card or token under a national or agency root, and the user already holds that credential for other systems. CertAuth depends on the front-end web server to verify the client certificate against trusted CAs before PHP sees anything, so the first confirmation is that the server accepts the full chain the card presents, including any intermediate CAs the issuing authority requires. Ask the PKI authority which certificate policies and extended key usages apply and whether revocation is checked through CRLs or OCSP from your network.

  • Trusted CA bundle: Include every issuing CA the server must accept, and confirm the bundle is maintained when the authority rotates intermediates.
  • Revocation path: Confirm who revokes a lost or leaving employee's card and how quickly your server can see that revocation.
  • Field mapping: Check which subject fields the authority populates, such as O and emailAddress, because these values drive user and organisation matching.
  • Reader and middleware: Confirm the client workstation middleware and browser versions used by staff are supported by the card vendor.
  • Break-glass access: Keep a separate administrator login path so a card or PKI outage does not lock out the instance.

Before enabling CertAuth for everyone, confirm the revocation source, the accepted chain and the field mapping with a test set of cards issued to real staff and to a revoked test card.

Setup sequence for CertAuth on a MISP instance

This sequence takes a MISP instance from an untrusted login page to a tested CertAuth configuration that admits only certificates issued by your trusted CAs and maps them to the right users and organisations. Each step ends with a check you can run before moving on.

  1. Configure the front-end server to verify client certificates

    The web server in front of MISP must request a client certificate, validate it against your trusted CA chain, and reject anything that fails. The platform team owns this change, with input from the PKI team on which root and intermediate CAs are included in the trust bundle. Confirm the trust bundle contains only the issuing CAs you intend to accept, not a broad public store. Done when an HTTPS request with no certificate is refused at the server and a request with a valid certificate reaches the application without a login prompt from MISP.

  2. Confirm SSL_CLIENT values reach PHP

    CertAuth depends on the front-end server passing the verified certificate details to PHP as SSL_CLIENT values. Check the server's documentation for the directives that expose client certificate fields as environment variables, and review the CertAuth plugin README for the exact variable names it reads. Do not trust a header that the client could set on its own request. Done when a small test page or a temporary debug output on the test instance shows the subject fields, such as O and emailAddress, for a known certificate, and shows nothing for a request without one.

  3. Enable and configure CertAuth on a test instance

    On a non-production MISP instance, enable the CertAuth plugin and set its configuration to match the variables you confirmed in the previous step. The MISP administrator makes these changes and records each setting in the change log. Keep password login active on this instance so an administrator can still sign in if the certificate settings are wrong. Done when an administrator can log in with a certificate, and the plugin settings page shows the values you entered.

  4. Set certificate field mapping and default role

    Map the certificate fields that identify the user and organisation, such as emailAddress for the user and O for the organisation, to the matching MISP user properties. Set the default role for newly created users. The CertAuth README gives role_id 6 (read only) as the default for new users, so review whether that suits your teams and change it only through a deliberate decision. Done when a test certificate with a known email address logs in as the expected existing user, and a certificate for a new user creates an account with the intended role and organisation.

  5. Test with one certificate from each issuing CA

    Use one valid certificate from every issuing CA in your trust bundle, including any intermediate that signs end-user certificates. Each should authenticate and land on the correct organisation and role. Record the subject fields and the outcome in a test log, so the same set can be rerun after upgrades or configuration changes. Done when every CA's test certificate produces the expected MISP account and the test log is stored with the configuration version.

  6. Check that revoked and unmapped certificates are refused

    Test negative cases before any user relies on the setup. Use a certificate that has been revoked through your PKI, if your front-end server checks revocation, and a certificate from an untrusted CA or one whose fields do not match any mapping. Confirm your front-end server's revocation handling works as your PKI team expects, because CertAuth does not replace that check. Done when each negative case is refused and the refusal is visible in the front-end server or MISP logs, with no account created or session granted.

  7. Roll out to production with a fallback admin

    Repeat the verified configuration on the production instance during a planned change window, with the same trust bundle and mapping settings used in testing. Keep at least one local administrator with password access available until the certificate path is confirmed working for your administrators. Ask your PKI team and identity owners to confirm who receives certificates and how revocations and leavers reach MISP. Done when a production administrator and a sample user each log in with a certificate, the fallback account is confirmed working, and the rollout checks are recorded.

What the default read only role means for new users

With CertAuth enabled, a new user whose certificate is accepted but who has not yet been mapped to a role is created with role_id 6, which the CertAuth plugin documentation describes as read only. In practice, a valid certificate gets a login and a view of the data that read only access allows, and nothing more. That is a safe starting point, but it also means a successful certificate check does not, on its own, finish onboarding. Before rollout, confirm in your instance which permissions role 6 carries, because the role list is set by the MISP installation and can be changed by the administrator. Check the role names and their permissions under the administration area, and record the result in your onboarding runbook so that reviewers know what a freshly created account can see.

The people who promote users need to be named before the first certificate is issued. In most organisations this is the organisation admin of the user's MISP organisation, who decides whether the person should publish, sync or administer. Site administrators keep the ability to change roles across the instance, and the two levels should be agreed in writing. Whatever the decision, record it. Use the MISP audit log and your own ticketing system to capture who requested the role change, who approved it, the date and the new role, so that a later access review can trace each permission back to a decision. Test the flow with a dummy certificate in a staging instance first, so that you know how a promoted account behaves before real smart card holders depend on it.

Be careful about who holds the power to create or promote accounts, because a permissive default combined with a broad admin group can quietly widen access. If organisation admins can self-register users under their own organisation, a certificate issued by a trusted CA could be followed by a role change that nobody central reviewed. Ask your PKI team whether certificate issuance and MISP onboarding are controlled by the same people, and confirm that the mapping of certificate fields to organisations (covered elsewhere in this page) cannot place a new user in a community they should not reach. Revisit the default role and promotion rights after each access review.

Security and operational considerations for certificate logins

Certificate login moves trust out of MISP and into the front-end server, the certificate authority and the header path between them. The cards below cover the controls that keep that chain sound, from the trusted CA list to the administrator login you keep for recovery.

Front-end server as the trust anchor

MISP does not verify the client certificate itself. The front-end server does, and it passes the result to PHP as SSL_CLIENT values. A misconfigured front end is a misconfigured login. Check that the web server rejects requests without a valid certificate on the MISP login path, that TLS terminates only where you expect, and that no other virtual host reaches the PHP application without the same checks.

CertAuth README

Scope of the trusted CA list

Every CA in the trusted list can issue certificates that log in to MISP, so the list should include only the issuing CAs your smart card or PKI program actually uses. Confirm whether intermediate certificates are included in the chain the front end presents, and test a certificate issued by each intermediate. A broad root bundle copied from an operating system store widens access well beyond your organization.

Revocation checking for lost cards

A certificate that is valid on the day it is issued can still need to be refused after a badge is reported lost or an employee leaves. Decide how revocation is checked before go-live, whether through CRL or OCSP at the front end, and confirm how long a revoked certificate can still work during a cache or polling interval. Also remove the matching MISP user or disable it, because a valid chain alone does not reflect the person's current status.

Protecting the SSL_CLIENT pass-through

CertAuth reads certificate fields from headers that the front end sets. If a client can send its own SSL_CLIENT headers and the front end does not overwrite them, a user can claim any identity. Strip any incoming copies of these headers at the edge and set them only from the verified certificate. Confirm that load balancers and proxies in front of the web server do not forward them untouched.

Logging certificate logins

Record which certificate, serial number and issuer were used for each login, and which MISP user it mapped to. Keep front-end access logs and MISP authentication logs together so an investigator can match a session to the presented certificate. Review failed attempts as well as successes, since a repeated rejected certificate can show a card in use after it should have been retired.

Keeping an administrator login outside certificates

If the certificate chain, CA list or front end breaks, certificate users lose access at the same moment. Keep at least one local administrator account with a password and MFA that works without the front-end certificate path. Store its credentials under your break-glass process, test the login periodically, and document who may use it and how its use is logged.

Questions teams ask about MISP certificate authentication

What drives the cost of setting up MISP certificate authentication?

The cost is driven mainly by how mature your PKI is and how much work sits outside MISP. Setup is not a single change: CertAuth needs a front-end server that verifies client certificates and passes the SSL_CLIENT values to PHP, so the work includes the web server configuration, the mapping of certificate fields to MISP users and organisations, and testing with real certificates. Ask a partner to price these components separately: PKI review, number of trusted CAs, front-end server changes, mapping design and test effort. One-time work covers the build and testing. Recurring cost appears when CA chains are renewed, new organisations join, or the front-end configuration changes during a MISP upgrade.

How many trusted CAs make MISP certificate authentication harder?

Each additional trusted certificate authority adds validation rules, chain testing and a mapping decision, so more CAs generally means more effort. A single internal CA with a clear naming convention is the simplest case. Multiple CAs, cross-certified roots, or smart card issuers with different certificate profiles require you to confirm which fields each CA populates, such as O and emailAddress, before mapping them to MISP users. Ask a partner to list every CA in scope and to state how revocation and chain validation are handled at the front-end server.

What must our team provide before a partner starts certificate authentication work?

Your team should provide the CA chains that will be trusted, a list of certificate fields and their naming conventions, a test plan with real certificates for each user type, and a named PKI contact who can answer questions about issuance and revocation. You should also provide access to the MISP instance, the front-end server configuration and a staging environment where changes can be checked before production. Without the field naming details, mapping work tends to take longer because the team must confirm each attribute by testing.

Can our internal engineers set up CertAuth without outside help?

Internal engineers can set up CertAuth if they already run the MISP web server and have working PKI knowledge, since the plugin's configuration is documented in its README. The usual gaps are the front-end server verification step, the certificate field mapping, and the default role assignment for new users, which is role_id 6 (read only) by default. Teams without a PKI specialist or without a staging environment often find testing the slowest part. Ask a partner for a review of your plan so you can decide which parts to keep in-house.

How long does certificate authentication take compared with a timeline for a full project?

Duration depends on scope, not on the plugin itself: a single CA with a staging environment and clear field naming is a small piece of work, while several CAs, a complex front-end setup or unclear PKI ownership extend it. Request a timeline in the written scope that separates PKI confirmation, front-end configuration, mapping, testing and the production cut-over, and ask which of these depend on your teams and third parties. Avoid comparing duration figures across partners unless each quote names the same scope.

How does CertAuth compare in effort with LDAP or OIDC login?

CertAuth usually asks more of the infrastructure team than an identity-provider login, because trust decisions sit in the web server and the PKI rather than in a directory or single sign-on service. LDAP login depends on a reader account and search filter, and OIDC login depends on client settings and role mapping at the identity provider. With CertAuth, the front-end verification, CA trust and field mapping must all be right before any user can sign in, so testing with real smart cards or certificates is more demanding. If your organisation already runs a PKI and smart card issuance, the effort may be lower in practice because the credentials already exist.

Limits to confirm in your environment

CertAuth depends on your MISP release, your front-end server, your PKI and how your certificates describe people and organisations. Each card below is a check to complete before you commit to certificate login, because a gap in any one of them tends to surface as a locked-out user or a wrongly assigned organisation.

Confirm the MISP and plugin release

Start by recording the exact MISP version your instance runs and the CertAuth plugin code that ships with it. MISP 2.5 is the recommended line for new deployments, and the plugin behaviour described in the README is tied to a specific branch. Compare the README against the code on your own instance, because plugin options and defaults can change between releases. Note this in your change record so an upgrade later does not silently alter who can log in.

CertAuth README

Verify the front-end server requirement

CertAuth does not check certificates itself. Your web server or reverse proxy must verify the client certificate and pass the SSL_CLIENT values to PHP. Confirm that your front-end can request client certificates, that it is configured to trust only your intended CA, and that the variables reach MISP unchanged through every proxy hop. If a load balancer terminates TLS, check that it forwards these values safely.

Define how revocation is handled

A certificate that is valid in the chain but revoked should not grant MISP access. Ask your PKI team how revocation is published, whether through CRLs or OCSP, and how quickly the front-end server sees updates. Decide what happens to a MISP account when a smart card is lost or an employee leaves, and whether disabling the user in MISP is part of that same process. Revocation checking is handled at the front-end, so test it there rather than assuming MISP covers it.

Check field mapping against your organisations

CertAuth maps certificate fields such as O and emailAddress to MISP user properties. Pull a sample of real certificates from your PKI and check that the O field matches the organisation names MISP expects, and that each person has one consistent email address. Certificates shared between people, reissued certificates with changed fields, or organisations that appear under several spellings will assign users to the wrong place. Agree a naming rule with the PKI team before rollout.

Decide whether users need a second login

Some users will not hold a smart card, such as external partners, service accounts for sync or API clients, or staff working from unmanaged devices. Decide now whether certificate login is the only method or one of several, and how mixed authentication behaves for each group. Keep an administrator account that can still sign in if the certificate path breaks. Users who depend on API keys should be tested separately, since certificate login does not replace them.

Review the default role for new users

New users created through certificate login receive role_id 6, which is read only, unless you change it. Confirm that this default fits your onboarding process, since a read only account cannot publish or perform the actions your analysts expect. Also decide who reviews newly created accounts and which role is assigned after review. Document the role change as a standard step so accounts do not stay on the default indefinitely.

CertAuth README

How DeployOpen scopes and delivers certificate authentication for MISP

DeployOpen plans and implements MISP client certificate authentication inside your own infrastructure, so CertAuth works with your PKI, trusted CAs and front-end server. Engagements start with a written scope that maps certificate fields to MISP users and organisations before any configuration changes are made.

How we scope

  • Inventory the CAs, certificate policies and smart card or PKI sources your users already hold credentials from
  • Agree which certificate fields map to user email, organisation and role, and who approves those mappings
  • Confirm the default role for new users, keeping read only (role_id 6) unless your onboarding process says otherwise
  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts

How we build

  • Configure the front-end server to verify client certificates and pass SSL_CLIENT values through to PHP
  • Set the CertAuth trusted CA list and field mapping in a staging MISP instance before production changes
  • Test valid, expired, revoked and unknown certificates, plus users whose certificate fields do not match
  • Check that SSO, API keys and sync traffic are not disrupted by the certificate requirement on the same host

How we hand over

  • Document the front-end server settings, CertAuth configuration and the exact certificate field mapping used
  • Provide a test record showing each case run, its expected result and the observed outcome
  • Walk administrators through onboarding a new certificate holder and disabling one who has left
  • Hand over a runbook for CA rotation, revocation list updates and certificate renewal ownership

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover
  • Review CertAuth and MISP version changes before upgrades, so mappings and the front-end configuration stay valid
  • Retest after changes to the PKI, CA chain or front-end server, and fix any regressions we introduced
  • Confirm the support scope, response expectations and retainer terms in writing with the quote

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.