iguanaTLS icon indicating copy to clipboard operation
iguanaTLS copied to clipboard

MalformedDER error from CertificateChain.from_pem

Open lonjil opened this issue 3 years ago • 0 comments

With this PEM file and the following code, I get a MalformedDER error.

var reader = std.io.fixedBufferStream(
    @embedFile("/etc/ssl/certs/ca-certificates.crt"),
).reader();
const trust = try tls.x509.CertificateChain.from_pem(alloc, reader);

Tell me if you want/need any other information.

lonjil avatar Aug 08 '21 01:08 lonjil