Package pkcs7 implements parsing and generation of some PKCS#7 structures.
go get go.mozilla.org/pkcs7