ЗАПИСИ С МЕТКОЙ #Go

[← Вернуться ко всем меткам]

x509: malformed serial number, or The Perils of Bad Error Handling

I was getting this 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.
[читать далее]