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 :


const long DIGITAL_SIGNATURE = 0x80;



const long NON_REPUDIATION = 0x40;



const long KEY_ENCIPHERMENT = 0x20;



const long DATA_ENCIPHERMENT = 0x10;



const long KEY_AGREEMENT = 0x08;



const long KEY_CERT_SIGN = 0x04;



const long CRL_SIGN = 0x02;

Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s