小编glo*_*bia的帖子

将 Sectigo/Comodo 的代码签名证书转换为实际可用的 .pfx 文件

当我尝试使用 Firefox 从 Sectigo/Comodo 下载代码签名证书时,我最终下载了一个名为 的文件CollectCCC,没有文件扩展名。我不清楚如何使用它来签署二进制文件。当我尝试使用它来签署二进制文件(/debug打开)时,我得到以下信息:

> .\installation\signtool.exe sign /debug /f 'C:\Users\username\Downloads\CollectCCC' .\DraughtHub_Link.exe

The following certificates were considered:
    Issued to: GoDragons
    Issued by: Sectigo RSA Code Signing CA
    Expires:   Fri Oct 22 00:59:59 2021
    SHA1 hash: <hash>

    Issued to: Sectigo RSA Code Signing CA
    Issued by: USERTrust RSA Certification Authority
    Expires:   Wed Jan 01 00:59:59 2031
    SHA1 hash: <hash>

    Issued to: USERTrust RSA Certification Authority
    Issued by: AAA Certificate Services
    Expires:   Mon Jan 01 00:59:59 2029 …
Run Code Online (Sandbox Code Playgroud)

openssl code-signing code-signing-certificate codesignkey

8
推荐指数
2
解决办法
1192
查看次数

如何指定 go get 使用哪个 ssh 密钥

我在同一台笔记本电脑(运行 Ubuntu 版本 20)上使用两个不同的 github 帐户(个人和工作)。我需要能够使用我的工作 github 帐户的 ssh 密钥从工作中访问私有存储库。

我已经使用一些简洁的 git 配置控件使这一切正常工作,即在我的~/.gitconfig文件中放入:

[url "git@github.com:work_account/"]
    insteadOf = https://github.com/work_account/
[includeIf "gitdir:~/src/github.com/personal_account/"]
    path=~/.gitconfig_personal
[includeIf "gitdir:~/src/github.com/work_account/"]
    path=~/.gitconfig_work
Run Code Online (Sandbox Code Playgroud)

个人配置包含:

[user]
name = Your Name
email = your.name@gmail.com
[core]
sshCommand = ssh -i ~/.ssh/id_rsa
Run Code Online (Sandbox Code Playgroud)

工作配置包含:

[user]
name = Your Name
email = your.name@work.com
signingkey = <ID of GPG key>
[core]
sshCommand = ssh -i ~/.ssh/id_ecdsa
[commit]
gpgsign = true
[gpg]
program = gpg
Run Code Online (Sandbox Code Playgroud)

这对于从 github 拉取和推送(并使用 gpg 密钥签署工作提交)非常有效,但在go get私人存储库上却失败了。由于某些奇怪的原因,go get …

git github go ssh-keys go-get

5
推荐指数
1
解决办法
4222
查看次数