XML Digital Signature
Install go-xmldsig
using go get
:
$ go get -u github.com/deb-ict/go-xmldsig
This code is based on repository russellhaering/goxmldsig and C# SignedXml.
If u star this repository, please star the original code repository as well!
This code is a requirement for the go-peppol project where including mime attachment digest in the signature is required.
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 365