Skip to content

Credentials: SCEP secrets and API keys

Credentials are the secrets that devices and your own systems use to request certificates from your EasyScep instance. There are two kinds:

Credential Used by
SCEP secret An MDM that sends a challenge password in its SCEP profile.
API key Your own systems that call the EasyScep API.

A profile only accepts a credential when the credential's kind is ticked on the profile's Who may request tab. See Profiles.

Overview

Open Configuration > Credentials in the EasyScep portal. The list shows each credential's type, profiles, last characters, status, validity, when it was last used and how many certificates it has issued.

Credentials page

Create a credential

  1. Click New SCEP secret.
  2. Enter a Name so you can recognise it, for example the MDM that uses it.
  3. Under Profiles, keep All profiles on, or turn it off and choose the profiles the secret may be used for.
  4. Optional: set Valid from and Valid until (UTC). Leave both empty for a secret without an end date.
  5. Click Create.

New SCEP secret dialog

The secret is shown once, after you click Create.

Warning: This is the only time the secret is shown. If you lose it, you have to create a new one.

  1. Copy the secret with the copy button, or click Download as .txt.
  2. Store it somewhere safe.
  3. Tick I have stored the secret and click Close.

New SCEP secret

Paste the secret into your MDM's SCEP challenge field.

  1. Click New API key.
  2. Enter a Name so you can recognise it, for example the system that uses it.
  3. Under Profiles, keep All profiles on, or turn it off and choose the profiles the key may be used for.
  4. Under What the key may do, tick what the key is allowed to do. A key can do nothing until you tick something.

    Permission Allows
    profiles:read Read the profiles and what a certificate request must contain.
    certificates:issue Request certificates.
    certificates:read Look up certificates.
    certificates:revoke Revoke certificates the key issued. Tick May revoke any certificate of its profiles to let it revoke others too.
    enrollment-tokens:create Create one-time enrollment tokens for devices.
  5. Optional: set Valid from and Valid until (UTC). Leave both empty for a key without an end date.

  6. Click Create.

New API key dialog

The key is shown once, after you click Create.

Warning: This is the only time the key is shown. If you lose it, you have to create a new one.

  1. Copy the key with the copy button, or click Download as .txt.
  2. Store it somewhere safe.
  3. Tick I have stored the secret and click Close.

New API key

Send the key with every API request in the header Authorization: Bearer <key>. With enrollment-tokens:create, your system can create enrollment tokens, as the Linux Device Kit does.

Manage credentials

Use the buttons at the end of each row in the Credentials list to see a credential's history, edit it or revoke it. "Last used" and the certificate count can be up to a minute behind.