go-pkcs12 icon indicating copy to clipboard operation
go-pkcs12 copied to clipboard

Encode should return an error if input certificate is not initialized

Open AGWA opened this issue 5 years ago • 1 comments

If any of the input's Raw fields are nil, then Encode should return an error Instead of succeeding and returning an invalid PKCS#12 file. Inspired by #11.

AGWA avatar Apr 05 '20 12:04 AGWA

This has been fixed in #39 by means of a sanity check() called with every certificate which is provided.

pschou avatar Sep 15 '22 18:09 pschou