Skip to content

Tag: pyopenssl

How do I read(open) an ASN.1 file in python

I want to get a certificates serial number using python: Unfortunately it fails in the first line: How do I read an ASN.1 file format (DER) in Python? Answer You are opening the file as a text file, which means read tries to decode the data using UTF-8 in order to return a str object. Instead, open it as a