gpg: skipped "xxx": secret key not available的一种解决方法
来源:互联网 发布:松视台在线直播软件 编辑:程序博客网 时间:2024/06/02 00:11
今天,在学习使用私钥来签署一个标签时遇到了一个问题。如下,
gpg: skipped "xxx": secret key not availablegpg: signing failed: No secret keyerror: gpg failed to sign the tagerror: unable to sign the tag
GnuPG也安装好了,也生成了gpg私钥。为什么还是一直出现这个问题呢?Google了一下,找到了解决方法。错误原因是:没有配置git使用的gpg程序的位置以及signingkey。
解决方法:在Git Bash终端配置gpg程序位置以及signingkey。
———————-配置gpg程序位置———————-
1.先找到GnuPG的安装目录下gpg2.exe的路径,默认是C:\Program Files (x86)\GNU\GnuPG。
2.配置gpg.program的位置。
$ git config –global gpg.program “C:\Program Files (x86)\GNU\GnuPG\gpg2.exe”
———————-配置signingkey———————-
1.查看sigingkey,在Windows命令终端下为gpg –list-keys。信息如下:
pub 2048R/F08971B8 2017-05-02uid [ultimate] xxxx (GPG key for xxx) <xxx@qq.com>sub 2048R/F08971B8 2017-05-02
signingkey为F08971B8。
2.在Git Bash中进行配置。
$ git config user.signingkey F08971B8
3.配置完上面这两步,问题就迎刃而解了。
1 0
- gpg: skipped "xxx": secret key not available的一种解决方法
- gpg: signing failed: secret key not available
- 带GPG签名的Git tag gpg: signing failed: secret key not available
- GPG key generation: Not enough random bytes available.
- gpg: Can't check signature: public key not found错误的解决方法
- this class is not key value coding-compliant for the key XXX错误的解决方法
- this class is not key value coding-compliant for the key XXX错误的解决方法
- 我的gpg key
- 解决GPG error: The following signatures couldn't be verified because the public key is not available
- apt-get couldn't be verified because the public key is not available: NO_PUBKEY XXX
- ubuntu add not available key
- Ubuntu public key is not available的错误
- Ubuntu public key is not available的错误
- The requested resource () is not available.的一种原因
- GPG Key
- An App ID with Identifier "xxx" is not available . Please enter a different string.解决方法
- Could not find XXX.apk!的解决方法
- Could not find XXX.apk的解决方法
- 翻转设计模式系列——第三部分--设计模式(1)--概览
- js实现数组元素移除
- 如何将mysql数据库的数据导出并转为.csv文件格式为UTF-8无BOM
- 算法导论 练习题 11.3-1
- 安卓动态加载之Hook(一)
- gpg: skipped "xxx": secret key not available的一种解决方法
- Boost.Interprocess使用手册翻译之八:分配器,容器和内存分配算法(Allocators, containers and memory allocation algorithms)
- 使用IIS服务器托管Apache服务器上的PHP程序
- Farkas引理
- Android应用程序中启动另一个应用程序
- mybatis动态查询之foreach,sql标签查询
- sqlite3_reset作用
- webview返回键问题
- server.xml之keepAliveTimeout与connectionTimeout