Kah – The Developer

Posts Tagged ‘OpenSSL

In A Certificate’s Subject, Issuer and its keyUsage, a certificate was read into memory and its subject and issuer names and its key usage extension contents were outputted. Here, the subject alternate names and extended key usage names are extracted. Both of these extensions are defined in RFC 3280 as a SEQUENCE of something. In [...]

Tags: ,

A Certificate’s Subject, Issuer and its keyUsage

Posted by: kahgoh on: 23 November, 2008

The first code that I ever wrote using OpenSSL was one that read the certificate into memory and examined the values of the keyUsage extension. In fact, OpenSSL provides the functionality to extract all of the information from an X509 certificate that you possibly want. In this tutorial, an X509 certificate is read into memory [...]

Tags: ,

Decrypting with the OpenSSL API

Posted by: kahgoh on: 13 July, 2008

Before you can decrypt something, you have to generate it! You can generate encrypted data with OpenSSL on the commandline using the enc command. The encryption process requires a key and iv (initialisation vector) pair, which can be derived from a given passphrase. The enc command gives you the option of specifying, either the passphrase [...]

Decoding Base 64 with OpenSSL

Posted by: kahgoh on: 25 June, 2008

Base 64 is a form of encoding that converts groups of 24 bits to four ASCII characters. The details of base 64 encoding is detailed on the Base 64 (Wikipedia) page. The information on that page should be enough for you to write your own base 64 decoder. Alternatively, we can use OpenSSL to do [...]

An Intro to OpenSSL

Posted by: kahgoh on: 21 June, 2008

I first came across OpenSSL when I first started work at Motorola in Perth, Western Australia. In their own words, the OpenSSL project …

Tags: ,