go-pkcs12
go-pkcs12 copied to clipboard
Encode should return an error if input certificate is not initialized
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.
This has been fixed in #39 by means of a sanity check() called with every certificate which is provided.