DigestAlgorithm & SigningCertificate attribute

This commit is contained in:
Paul van Brouwershaven
2022-07-15 15:42:10 +02:00
parent 6224a363e9
commit dcc44d5779
5 changed files with 76 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
package main
import (
"crypto"
"flag"
"fmt"
"log"
@@ -142,6 +143,7 @@ func main() {
DocMDPPerm: sign.AllowFillingExistingFormFieldsAndSignaturesPerms,
},
Signer: pkey,
DigestAlgorithm: crypto.SHA256,
Certificate: cert,
CertificateChains: certificate_chains,
TSA: sign.TSA{