Choose which secret key to use when doing a gpg --encrypt --sign

痴心易碎 提交于 2019-12-05 10:52:40

问题


I have multiple secret keys in my GPG keyring.

I'd like to do a gpg -e -s -a to encrypt, sign, and ascii armor the output. However, I also need to specify which secret key to use for the signature, by key id.


回答1:


I needed the --local-user option.

gpg -e -s -a --local-user 0xDEADBEEF -r 0x01234567


来源:https://stackoverflow.com/questions/9624384/choose-which-secret-key-to-use-when-doing-a-gpg-encrypt-sign

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!