문제

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