A creative solution for effectively querying X509 certificate attributes

I could not query our service logs for attributes I was interested in and had to come up with a fast and creative solution to do it.

I owned a Certificate Authority (CA) service with my team. The CA generated X509 certificates for clients. For simplicity, an X509 certificate was a list of attributes with a digital signature of the service authority. The service logged all generated certificates in Privacy-Enhanced Mail format (PEM) to log storage. PEM is a base64 format. It was impossible to query the…