Support extracting fingerprint(s) of certificates and TSKs
Hi! I would like for SOP to support the extraction of fingerprints from certificates and TSKs.
Currently I am working on a CI integration for a project and require the fingerprint of an OpenPGP certificate. What I am currently doing to get to it is:
$SOP generate-key --signing-only test > foo.tsk
$SOP extract-cert > foo.pgp < foo.tsk
$SOP sign foo.tsk > msg.sig <<<(echo "msg")
$SOP verify msg.sig foo.pgp <<<(echo "msg") | cut -d ' ' -f2
It would be nice if there was something to get to the primary fingerprint (or all fingerprints), e.g.:
$SOP generate-key --signing-only test > foo.tsk
$SOP fingerprint foo.tsk
Especially in scripted environments and when interfacing with e.g. test requirements where a fingerprint is needed (e.g. for less stateless OpenPGP implementations) this would be immensely useful.
Has a feature like this been evaluated?