Skip to content

OIDC user guide

As a user

Run bxp trust once. Then:

bxp ssh --key ~/.ssh/id_ed25519.pub

Your browser opens the identity provider. If you are already logged in there, it comes straight back and the window says "Login succeeded". The certificate is written next to your key.

  • It gets the login names listed for you in the access rules; use --principal for fewer.
  • Its key ID starts with your name, so SSH servers' logs say who logged in.
  • Nothing is saved on your machine besides the certificate.

Straight into ssh-agent, nothing on disk:

bxp ssh --agent

A TLS client certificate for yourself

For VPN or mutual TLS:

bxp tls

No --name: the CA decides it, and it is yours ([email protected], as common name and email address). The profile is oidc.x509.cert_profile.

When the browser does not open

The command also prints the login address. Open it on the same machine: the result is sent to an address that only exists there (127.0.0.1).

As an admin

Admins can create one-time tokens from their own machine, not only on the CA machine. It is the same bxp token command: where there is no CA configuration file, or with --ca-url, it asks the CA server and opens the browser for the login.

bxp token --profile ssh-host --name web1.example.com
bxp token --profile tls-server --name web.example.com --valid-for 1h

The CA's log records who created each token. An admin can also skip the token and request any certificate directly, choosing the kind with --profile:

bxp tls --profile tls-server --name web.example.com

Machines without a browser

Servers, containers and SSH sessions have no browser to log in with. Use a one-time token there: an admin creates it (above) and the machine runs bxp tls --token <token> ... or bxp ssh --token <token> .... If the CA also checks directory passwords, --ldap works there too.

Problems

Symptom Cause and fix
The browser warns about the certificate Your machine does not trust the CA's root: install root.crt in the system trust store.
login refused: no rule for this person (CA log) You match no access rule: ask the CA admin.
You get fewer principals than expected Your groups at the provider do not match the rules, or the provider does not send groups (Google sends none).
Entra ID: login refused for people in many groups The groups claim overflowed: limit it to groups assigned to the application.
The login never completes The login address was opened on another machine: open it where bxp runs.