Yubikey
YubicoBitwardenGPG ToolsDonate Coffee
General
General
  • Introduction
    • Getting Started
    • Terms
    • FAQ
    • NFC vs FIPS
    • Securing Your Footprint
  • Tutorials
    • ⭕Bitwarden
    • ⭕Bitlocker
    • ⭕Code Signing
    • ⭕EFS
    • ⭕Github Desktop
    • ⭕KeePassXC
    • ⭕SSH + PuTTY-CAC
      • 🟣PIV-PKCS
      • 🟣PIV-CAPI
      • 🟣GPG
      • ⭕Configs
        • 📄gpg.conf
        • 📄gpg-agent.conf
        • 📄scdaemon.conf
    • ⭕Battle.net OTP
    • ⭕Steam OTP
    • ⭕Veracrypt
  • GUIDES
    • ⭕Setting up a New Key
      • 🟣Minimal Version
    • ⭕Securing Your Credentials
    • ⭕Setting up CLI / ykman
    • ⭕Setting up CLI / GPG
    • ⭕Mysterious Certificates
    • ⭕Understanding PINs
      • 🟣FIDO2
      • 🟣GPG
      • 🟣PIV
    • ⭕Yubikey Firmware
  • CHEATSHEETS
    • ⭕Environment Variables
    • ⭕Files/Abbreviations
    • ⭕OpenSSL
      • 🟣slot_9a.cnf
      • 🟣slot_9c.cnf
      • 🟣slot_9d.cnf
      • 🟣slot_9e.cnf
    • ⭕PEM Types
    • ⭕Usage Types
      • 🟣KeyUsage
      • 🟣KeyUsageProperty
      • 🟣extendedKeyUsage
      • 🟣KeyProtection
      • 🟣KeySpec
Powered by GitBook
On this page
  • ❊ Notes
  • ❊ Examples

Was this helpful?

  1. CHEATSHEETS
  2. Usage Types

KeyUsage

Specifies the key usages set in the key usage extension of the certificate.

The following list specifies what KEY USAGES you can enter when creating certificate + keypairs for programs like OpenSSL and Microsoft's certreq command.

OpenSSL Value
Certreq Value
Description

digitalSignature

CERT_DIGITAL_SIGNATURE_KEY_USAGE

nonRepudiation

CERT_NON_REPUDIATION_KEY_USAGE

keyEncipherment

CERT_DATA_ENCIPHERMENT_KEY_USAGE

dataEncipherment

CERT_DATA_ENCIPHERMENT_KEY_USAGE

keyAgreement

CERT_KEY_AGREEMENT_KEY_USAGE

keyCertSign

CERT_KEY_CERT_SIGN_KEY_USAGE

cRLSign

CERT_OFFLINE_CRL_SIGN_KEY_USAGE CERT_CRL_SIGN_KEY_USAGE

encipherOnly

CERT_ENCIPHER_ONLY_KEY_USAGE

decipherOnly

CERT_DECIPHER_ONLY_KEY_USAGE

❊ Notes

To supply multiple key usages for Microsoft's certreq inf file, you must seperate them using the pipe | character.

KeyUsage = "CERT_DIGITAL_SIGNATURE_KEY_USAGE | CERT_KEY_ENCIPHERMENT_KEY_USAGE"

❊ Examples

piv_name_9c.cnf
keyUsage=critical,digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment, keyAgreement, keyCertSign, cRLSign
bitlocker-certificate.txt
KeyUsage = "CERT_KEY_ENCIPHERMENT_KEY_USAGE"
PreviousUsage TypesNextKeyUsageProperty

Last updated 2 years ago

Was this helpful?

To add a

- the message cannot be denied from having been sent

To a

To data

For

To

To a

To only

To only

⭕
🟣
signature to a message
non-repudation
encrypt
key
encrypt
key exchange
sign a certificate
sign
certificate revocation list (crl)
encrypt
decrypt