Ume*_*thi 36 gnupg openpgp sonatype maven
我正在尝试将我的临时存储库推oss.sonatype.org送到中央存储库,但此操作正在失败,我正在跟踪异常
Event: Failed: Signature Validation
typeId signature-staging
failureMessage No public key: Key with id: (XXXXX) was not able to be located on http://keyserver.ubuntu.com:11371. Upload your public key and try the operation again.
Run Code Online (Sandbox Code Playgroud)
我曾经gbp为我生成公共密钥和私有密钥,我甚至使用以下命令将公钥发送到服务器
gpg --keyserver hkp://pool.sks-keyservers.net --send-keys EE539F98
Run Code Online (Sandbox Code Playgroud)
我仍然得到相同的例外.我交叉检查,只有一个Sub Key,不知道我还需要做什么来推公钥,所以这可以通过nexus找到
Jen*_*rat 33
各种OpenPGP密钥服务器同步,但这需要一些时间.如果您知道将查询哪个密钥服务器,您可以直接在那里上传密钥.
我做了:
gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys EE539F98
gpg --keyserver hkp://keyserver.ubuntu.com --send-keys EE539F98
Run Code Online (Sandbox Code Playgroud)
现在你的密钥可以在Ubuntu的密钥服务器上成功找到,而不必等到它自动同步.
实际上我多次运行recv-command来查找已经拥有密钥的池中的密钥服务器.
小智 5
我收到了错误消息:
没有公钥:ID为:(xxxx)的密钥无法位于http://keyserver.ubuntu.com:port上.上传您的公钥并再次尝试操作.
然后我在控制台上输入以下命令:
gpg --keyserver hkp://keyserver.ubuntu.com --send-keys xxxx
Run Code Online (Sandbox Code Playgroud)
(从主机名末尾删除:port)它有效!
| 归档时间: |
|
| 查看次数: |
4242 次 |
| 最近记录: |