Simple OpenSSL based X.509 certificate parser