My snap package wants to encrypt some data during «a hook» plug/slot connection. I know that «within snapcraft.yaml» you have to stage your hooks to get an environment, and it works perfectly with e.g
uuid etc. But…
To be simple;
I want to
- generate a key
- sign a file, and
- share a key,
- share a file
upon connection. It’s not important who,when, why, but a valid signature is is crucial to ensure that the connecting app doesn’t change.
However, I’ve tried to stage my «prepare» hook w/stage packages (gpg, gpg-client), but I’m still getting «/usr/bin/gpg-agent» = “Not found”.
If I log in to the running daemon (
snap run --shell), I can see that
which gpg and
$SNAP/usr/bin/gpg-agent. If I execute
$SNAP/usr/bin/gpg-agent- I’ll get
gpg-agent: gpg-agent running and available
Will I have to change to OpenSSL for this matter or can I use GPG?