27.07.2023
x509: malformed serial number, or The Perils of Bad Error Handling
I was getting this
[mehr lesen]
x509: malformed serial number error in my Go application when I tried to read a public key of a specific format. This error was very misleading, and it took me quite a while to figure it out. Most of the time was spent because of bad error handling practices in certain Go libraries. But I’ll get to that later, let’s start from the problem.