GnuPG在batch模式,必須使用fingerprint!it
因此在輸出key的ID時,須要使用--with-fingerprint選項。im
示例指令以下,這是man gpg裏建議的作法:img
或者下面這樣,也勉強能夠實現!bat
ps:ps
man gpg能夠看到,使用 fingerprint 時貌似不須要 --yes。