Вопрос

I would like to know how to generate gpg public and private keys without any human interaction

i need instructions to build a bash to do suck work ,something like:

name=$1
email=$2
pubkeypath=$3
gpg  --gen-key --name $name --email $email .........
gpg --export -a $name > $pubkeypath
.
.
.
Это было полезно?

Решение

There is a feature for unattendet operation; according to the online documentation, this feature is still experimental, i.e. the interface might break during an update. This interface allows you to pipe a sequence of commands to gpg's stdin, which must be called with the parameters --gen-key and --batch. A description of the commands possible is found on this webpage.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top