Certificate Transparency Logs for C#

397 Views Asked by At

Currently working on a certificate transparency logs. My goal is to read each log just like what CertStream - (Open the fire hose button) did, my boss wants to create another one that is written in C#. Just a simple code to parse the logs can really help me. Not necessarily as fancy as CertStream does its stuff.

These are the following links/APIs that I've read: (API's from Google or related)

Valuable info:

For the code I started,

 byte[] byte_LeafInput = Convert.FromBase64String(leaf_input);
 byte[] byte_extradata = Convert.FromBase64String(extra_data);
 string strLeafInput = Encoding.UTF8.GetString(byte_LeafInput);
 string strExtraData = Encoding.UTF8.GetString(byte_extradata);

But it only shows some gibberish data with few readable words. enter image description here

Any codes or libraries that can help me with that? Upon searching, I found so many codes written in different languages like Python, Go, etc., but based on what I understand in their code, they are also using libraries which is not available in NuGet. X509Certificate might be useful but I don't know how to use it in this case.

Any lead would really be appreciated. Thank you.

1

There are 1 best solutions below

0
On

Upon searching for a long time. My boss advised me to get the logs and parse it through Python and save that in a text file or csv. After that, my program in C# can use all functions to analyze the information in the created text file. I guess using the current wheel is more efficient than creating one. :)