summaryrefslogtreecommitdiffstats
path: root/scripts/extract-cert.c
diff options
context:
space:
mode:
authorDavid Howells2015-07-20 22:16:33 +0200
committerDavid Howells2015-08-12 18:01:01 +0200
commited8c20762a314124cbdd62e9d3e8aa7aa2a16020 (patch)
treec92b41d3ff5f5971061631459029edadae904df6 /scripts/extract-cert.c
parentPKCS#7: Support CMS messages also [RFC5652] (diff)
downloadkernel-qcow2-linux-ed8c20762a314124cbdd62e9d3e8aa7aa2a16020.tar.gz
kernel-qcow2-linux-ed8c20762a314124cbdd62e9d3e8aa7aa2a16020.tar.xz
kernel-qcow2-linux-ed8c20762a314124cbdd62e9d3e8aa7aa2a16020.zip
sign-file: Generate CMS message as signature instead of PKCS#7
Make sign-file use the OpenSSL CMS routines to generate a message to be used as the signature blob instead of the PKCS#7 routines. This allows us to change how the matching X.509 certificate is selected. With PKCS#7 the only option is to match on the serial number and issuer fields of an X.509 certificate; with CMS, we also have the option of matching by subjectKeyId extension. The new behaviour is selected with the "-k" flag. Without the -k flag specified, the output is pretty much identical to the PKCS#7 output. Whilst we're at it, don't include the S/MIME capability list in the message as it's irrelevant to us. Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-By: David Woodhouse <David.Woodhouse@intel.com
Diffstat (limited to 'scripts/extract-cert.c')
0 files changed, 0 insertions, 0 deletions