GitKraken Desktop Documentation

Sign Commits with GPG or SSH in GitKraken Desktop

Last updated: November 2026


Use this page to sign Git commits and tags in GitKraken Desktop with either GPG or SSH keys so hosting providers can verify your identity.

Requirements and limits

  • Scope: Commit and tag signing with GPG or SSH keys
  • GPG requirement: Install GPG before configuring signing in GitKraken Desktop
  • Restart requirement: Close and reopen GitKraken Desktop after installing GPG
  • SSH signing setup: Requires a .pub signing key, and an allowed_signers file to verify SSH signatures
  • Host verification note: GitHub and GitLab support SSH-signed commit verification; Bitbucket does not
  • Verification behavior: Signed commits show a badge in the Commit Panel with signature details on hover

Quick Start

To sign commits with GPG:

  1. Install GPG for your operating system (Gpg4win on Windows, brew install gpg on macOS, or your Linux package manager).
  2. Close and reopen GitKraken Desktop.
  3. Go to Preferences > Commit Signing.
  4. Select a Signing Key from the dropdown, or click Generate new GPG Key.
  5. Set the GPG Program path if it is not auto-detected.
  6. Enable Sign Commits by Default and/or Sign Tags by Default.
  7. Click Copy GPG Public Key in Preferences > Commit Signing and upload the key to your hosting service (GitHub, GitLab, or Bitbucket).

To sign commits with SSH:

  1. Generate an SSH key.
  2. Go to Preferences > Commit Signing, set the GPG Format to SSH, and select your .pub key file.
  3. Create an allowed_signers file and select it in Allowed Signers File.
  4. Enable Sign Commits by Default.

Signed commits display a badge next to the SHA in the Commit Panel. Hover over it to view signature details.

What commit signing is

Git lets you commit with any name and email address. To prove that a commit is yours, you can sign commits and annotated tags with a GPG or SSH key pair.

When you sign a commit, anyone with your public key can verify that you created it. If you upload your public key to a hosting service such as GitHub, the service shows your signed commits as verified.


How to sign commits with GPG

To sign with GPG, install GPG, set up a key in GitKraken Desktop, and upload the public key to your hosting service.

GPG requirements

Before signing commits, install and configure GPG.

Note: Close GitKraken Desktop before installing GPG.

  • Windows: Use Gpg4win and follow the installer.
  • Mac: Use Homebrew:
    brew install gpg
  • Linux: Use your package manager:
    • Debian/Ubuntu: apt install gnupg
    • Fedora: dnf install gnupg2
    • CentOS/RHEL: yum install gnupg2

Other downloads are at gnupg.org.

To check that GPG is installed, run:

gpg --version
GPG version output
GPG version output.

Note: If gpg is not an alias for gpg2, run the commands with gpg2 instead.

How to generate a GPG key in GitKraken Desktop

After you install GPG:

  1. Go to Preferences > Commit Signing.
  2. Click Generate new GPG Key.
  3. (Optional) Enter a passphrase before generating.
Generate new GPG key in Preferences
Generate new GPG key in Preferences.

Note: Make sure GPG is configured in GitKraken Desktop. See How to configure GPG in GitKraken Desktop.

How to configure GPG in GitKraken Desktop

  1. Go to Preferences > Commit Signing.
  2. Select a Signing Key from the dropdown list. If the list is empty:
    • Set the GPG Program path.
    • Restart GitKraken Desktop after installing GPG.
  3. If GitKraken Desktop does not detect the GPG Program location, enter it or click Browse. To find the path, run:
    which gpg # macOS/Linux
    where gpg # Windows
    Browse to GPG executable
    Browse to GPG executable.
  4. Enable Sign Commits by Default and/or Sign Tags by Default as needed.

How to verify signed commits

Signed commits show a badge next to the SHA in the Commit Panel.

Signed commit badge
Signed commit badge.

Hover over the badge to see the signature details:

GPG signature details tooltip
GPG signature details tooltip.

Common GPG signature codes:

  • GOODSIG: Valid signature.
  • EXPSIG: Signature is expired.
  • EXPKEYSIG: Signed with expired key.
  • REVKEYSIG: Signed with revoked key.
  • BADSIG: Signature not verified.
  • ERRSIG: Unable to check signature (missing key or unsupported algorithm).

How to upload a GPG key to your hosting service

To have your hosting service show signed commits as verified:

  1. In GitKraken Desktop, go to Preferences > Commit Signing and click Copy GPG Public Key.
  2. Add the key to your hosting service:

How to edit a GPG key

To add an email address to a key or renew it, use the GPG command line:

  1. List your keys:
    gpg --list-secret-keys --keyid-format LONG
    List GPG secret keys
    List GPG secret keys.
  2. Open the key for editing:
    gpg --edit-key YOUR_KEY_ID
  3. Run the commands you need:
    • adduid: Add an email address
    • deluid: Remove an email address
    • trust: Update the trust level
    • expire: Change the expiration date
    • save: Save and exit

For every option, see GNU’s full GPG key guide.

After editing, upload the key to your hosting service again. See How to upload a GPG key to your hosting service.

How to delete a GPG key

To delete a key, run this command followed by your key ID or name:

gpg --delete-secret-keys
Delete GPG key confirmation
Delete GPG key confirmation.
Final delete confirmation
Final delete confirmation.

How to sign commits with SSH

GitKraken Desktop signs with SSH through the Git selected in Preferences > General > Git Executable. If that Git’s OpenSSH version is too old to sign commits, the Git Executable setting shows a warning with the detected version.

SSH signing requirements

  • macOS/Linux: Git and OpenSSH are usually preinstalled.
    git -v
    ssh -V
  • Windows: Install Git Bash.

How to enable SSH signing

  1. Create SSH key:

    ssh-keygen -t ed25519 -C "[email protected]"
    Generating SSH key
    Generating SSH key.
  2. Set GPG Format to SSH:
    Preferences > Commit Signing > GPG Format → select SSH.

  3. Select signing key:
    In Signing Key, browse to the .pub key.

  4. Create allowed_signers file:

    touch ~/.ssh/allowed_signers
    echo "$(git config --get user.email) namespaces="git" $(cat ~/.ssh/YOUR_KEY.pub)" >> ~/.ssh/allowed_signers

    In Preferences > Commit Signing, select this file in Allowed Signers File.

  5. Enable signing by default:
    Preferences > Commit Signing → enable Sign Commits by Default and/or Sign Tags by Default.

  6. Add SSH Key to Host:

pre{position:relative;min-height:3em}
.copy-btn{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;height:28px;padding:0 8px;background:rgba(128,128,128,.12);border:1px solid rgba(128,128,128,.2);border-radius:4px;cursor:pointer;color:#999;opacity:0;transition:opacity .15s,background .15s,color .15s;font-size:11px;font-family:sans-serif}
pre:hover .copy-btn{opacity:1}
.copy-btn:hover{background:rgba(128,128,128,.25);color:#555}
.copy-btn.copied{color:#22c55e;border-color:rgba(34,197,94,.3)}

(function(){var C=’Copy’,K=’Copied!’;function cp(t){if(navigator.clipboard&&window.isSecureContext)return navigator.clipboard.writeText(t);var x=document.createElement(‘textarea’);x.value=t;x.style.cssText=’position:fixed;opacity:0′;document.body.appendChild(x);x.select();try{document.execCommand(‘copy’)}catch(e){}document.body.removeChild(x);return Promise.resolve()}function init(){document.querySelectorAll(‘pre’).forEach(function(p){if(p.querySelector(‘.copy-btn’))return;var b=document.createElement(‘button’);b.className=’copy-btn’;b.setAttribute(‘aria-label’,’Copy code’);b.innerHTML=C;p.appendChild(b);b.addEventListener(‘click’,function(){var el=p.querySelector(‘code’)||p,cl=el.cloneNode(true),bn=cl.querySelector(‘.copy-btn’);if(bn)bn.remove();cp((cl.innerText||cl.textContent).trimEnd()).then(function(){b.innerHTML=K;b.classList.add(‘copied’);setTimeout(function(){b.innerHTML=C;b.classList.remove(‘copied’)},2000)})})})}document.readyState===’loading’?document.addEventListener(‘DOMContentLoaded’,init):init()})()

Have feedback about this article? Did we miss something? Let us know!
On this page