Skip to content

bxp scep

BastionXP CA's own SCEP client: to try out the CA's SCEP server, and for scripts that stand in for a device. On a normal machine, bxp tls and bxp renew are simpler.

Command Purpose
bxp scep enroll Get a certificate, with a one-time token as the challenge.
bxp scep renew Get a new one, signed with the current certificate: no token.
bxp scep getcert Fetch a certificate the CA issued before, with its key.

SCEP needs RSA keys; all three make or expect RSA keys.

enroll

$ bxp scep enroll --token <token> --name device1.example.com
Private key:  device1.example.com.key
Certificate:  device1.example.com.crt
Valid until:  2026-12-15 15:13 UTC

Without --token, it logs in (browser, or --ldap); --profile then chooses the profile (default tls-device). A login that is not an admin may only get a certificate for its own name, of the login's own profile: use --profile tls-client for that. It writes <name>.key and <name>.crt (the certificate followed by the CA certificate that signed it). It checks the SCEP server's certificates against the CA's root.

renew

bxp scep renew --cert device1.example.com.crt --key device1.example.com.key \
    [--force] [--exec "<command>"]

Checks that the server offers Renewal, then renews (see Renewal and GetCert).

getcert

bxp scep getcert --serial <hex> --key device1.example.com.key [--out file] [--force]

--out defaults to <serial>.crt.

See the CLI reference for all flags: enroll, renew, getcert.