Key management for archives

NdK ndk.clanbo at
Fri Jun 9 10:05:18 CEST 2017

Il 09/06/2017 08:24, Werner Koch ha scritto:

>  ( gpg --status-fd 1 --show-session-key --max-output 1 \
>       -o /dev/null 2>/dev/null FILE || true ) \
>    | awk '$1=="[GNUPG:]" && $2=="SESSION_KEY" {print $3}'
> The output can then be used with --override-session-key
Tks! That's exactly what I was looking for.

I'll probably put that in a script that immediately re-encrypts the
session key with the public key of the newly authorized user.
Then he'll decode the session key and use it to decrypt the archive.


More information about the Gnupg-users mailing list