PKI – Key Usage field in Certificates

I was in a situation where I want to write down a certificate request by opening a notepad and filling out the request . When I came to specify the key usage , I discovered I had to type a constant representing the Key Usage field . Here they are :

DIGITAL_SIGNATURE

const long DIGITAL_SIGNATURE = 0x80;

 


NON_REPUDIATION

const long NON_REPUDIATION = 0x40;

 


KEY_ENCIPHERMENT

const long KEY_ENCIPHERMENT = 0x20;

 


DATA_ENCIPHERMENT

const long DATA_ENCIPHERMENT = 0x10;

 


KEY_AGREEMENT

const long KEY_AGREEMENT = 0x08;

 


KEY_CERT_SIGN

const long KEY_CERT_SIGN = 0x04;

 


CRL_SIGN

const long CRL_SIGN = 0x02;

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s