为什么我不能对 Ubuntu 行为准则进行 gpg 签名?

Lio*_*ker 6 launchpad keyrings gnupg

因此,我花了相当多的时间尝试签署此行为准则,但现在正处于放弃的边缘。

正确地在 txt 文件阶段https://launchpad.net/codeofconduct/1.1/+sign 上签名,但现在我收到一个错误,并且厌倦了与 Ubuntu 的斗争。

它与终端中的 clearsign 事情有关。

见下文

$ gpg --clearsign UbuntuCodeofConduct-1.1.txt

You need a passphrase to unlock the secret key for
user: "Leon Gert Marincowitz (for launchpad) <lmarincowitz@gmail.com>"
2048-bit RSA key, ID 715FBC94, created 2012-06-16

gpg: can't open `UbuntuCodeofConduct-1.1.txt': No such file or directory
gpg: UbuntuCodeofConduct-1.1.txt: clearsign failed: file open error
Run Code Online (Sandbox Code Playgroud)

ish*_*ish 6

让我们在内存中做所有事情以避免任何文件权限等问题:

  • sudo apt-get install xselxsel允许终端程序从剪贴板复制/粘贴)
  • wget -O- https://launchpad.net/codeofconduct/1.1/+download | gpg --clearsign | xsel --clipboard
    • wget将行为准则传送gpg,后者将签名的输出/签名传送到xsel,然后将其传送到剪贴板,以便您可以直接在 Launchpad 页面上使用Ctrl+粘贴它V
    • 由于图形GPG密码对话框引起的等待,这可能第一次失败;只需再做一次,它就会通过,因为密码短语会缓存几分钟。