maxgoedjen / secretive

Store SSH keys in the Secure Enclave
MIT License
6.99k stars 155 forks source link

No secret key #494

Closed chasen-bettinger closed 6 months ago

chasen-bettinger commented 6 months ago

Error:

error: gpg failed to sign the data:
gpg: skipped "/Users/me/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/PublicKeys/2428d3e2b73ab36837cf35699921794b.pub": No secret key
[GNUPG:] INV_SGNR 9 /Users/me/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/PublicKeys/2428d3e2b73ab36837cf35699921794b.pub
[GNUPG:] FAILURE sign 17
gpg: signing failed: No secret key

Encountered while running git commit.

My ~/.gitconfig:

[user]
    name = me
    email = me@me.com
    signingkey = /Users/me/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/PublicKeys/2428d3e2b73ab36837cf35699921794b.pub

[commit]
    gpgsign = true

[core]
    symlinks = true
    excludesfile = /Users/me/.gitignore
[url "ssh://git@github.com/"]
    insteadOf = https://github.com/
[push]
    autoSetupRemote = true
[submodule]
    recurse = true
[pull]
    rebase = true

Not sure what exactly I've done to get in this state, I apologize for lack of reproduction steps!

chasen-bettinger commented 6 months ago

~/.gitconfig is missing gpg.format = ssh

[user]
    name = me
    email = me@me.com
    signingkey = /Users/me/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/PublicKeys/2428d3e2b73ab36837cf35699921794b.pub

[commit]
    gpgsign = true

[gpg]
        format = ssh

[core]
    symlinks = true
    excludesfile = /Users/me/.gitignore
[url "ssh://git@github.com/"]
    insteadOf = https://github.com/
[push]
    autoSetupRemote = true
[submodule]
    recurse = true
[pull]
    rebase = true