πŸ”Œ IntegrationsΒΆ

πŸ” AuthenticationΒΆ

OpenID connect (OIDC)ΒΆ

With OpenID connect, CertBob allows the interactive authentication of users via an existing OIDC IdP (SSO).

Hint

To configure OIDC, set the following variables:

Members of the OIDC_ADMIN_GROUPS are admins (e.g. to approve service certificate requests). The groups are read from the OIDC_GROUPS_CLAIM of the ID token. If your IdP only includes the groups for a specific scope, add it to OIDC_SCOPE.

Local authenticationΒΆ

CertBob also allows for interactive authentication of local users.

Hint

To configure local users / authentication, set the LOCAL_USERS and / or LOCAL_ADMINS variables.

Note

If possible always use OpenID connect (OIDC), or any other authentication mechanism.

βœ‰οΈ Email (SMTP)ΒΆ

Instead of providing the certificates as download, CertBob can also send the certificates via email. This works interactively over the web interface, and also for 3rd-party integrations such as Mattermost.

Hint

To configure email / SMTP, use the following variables:

🧩 3rd-party¢

MattermostΒΆ

Mattermost provides custom Slash commands, which are leveraged by CertBob to issue new certificates.

With this integration, Mattermost users (aka employees) who are already authenticated can easily obtain new certificates, without additional external authentication.

Hint

To configure Mattermost, set the MATTERMOST_TOKEN.

Note

The CertBob & Mattermost communication works like this:

        sequenceDiagram
    actor User
    participant Mattermost
    participant CertBob
    participant CA

    Note over User,CA: Entrypoint
    User->>Mattermost: Chat input<br/>Enters /cert download

    Note over User,CA: Request download link
    Mattermost->>CertBob: HTTP request<br/>POST /mattermost/ with the Mattermost token
    Note over CertBob: 1. Validates the Mattermost token<br/>2. Creates a short-lived JWT<br/>3. Creates a /download?token=JWT link
    CertBob-->>Mattermost: HTTP response<br/>Go to /download?token=JWT
    Mattermost-->>User: Action<br/>Instructs the client to open /download?token=JWT

    Note over User,CA: Issue certificate
    User->>CertBob: HTTP request<br/>GET /download?token=JWT
    Note over CertBob: 1. Validates the JWT<br/>2. Creates a new key & CSR
    CertBob->>CA: Request<br/>Sends the CSR with the provisioner password
    Note over CA: 1. Validates the provisioner password<br/>2. Signs the certificate
    CA-->>CertBob: Response<br/>Certificate signed by the CA
    Note over CertBob: Converts certificate & key to PKCS12
    CertBob-->>User: HTTP response<br/>Provides user_cert.p12