Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Vendor: Git project · https://git-scm.com/ · pkg:generic/git · Last reviewed 2026-12-05 · History

Summary

  • Git has no TLS or SSH implementation: HTTPS goes through libcurl and its TLS library (see curl, OpenSSL), SSH through the system ssh (see OpenSSH), and Git has no setting for key exchange groups (checked 2026-12-05).123
  • Signing runs gpg, gpgsm or ssh-keygen, chosen with gpg.format (openpgp, x509, ssh); Git accepts whatever key types the program supports and documents no post-quantum signature type (checked 2026-12-05).45
  • Restricting algorithms: pass options to ssh with core.sshCommand; for HTTPS Git offers only http.sslVersion and http.sslCipherList.23
  • Nothing planned, in progress or requested in Git was found (checked 2026-12-05); the latest release is 2.56.1 (2026-10-26).6
  • Elsewhere: gpgsm has ML-DSA signing in its development branch only, and OpenSSH ssh-keygen lists the hybrid key type mldsa44-ed25519; see Commit and tag signing.78

To restrict SSH key exchange, run git config core.sshCommand "ssh -o KexAlgorithms=mlkem768x25519-sha256,sntrup761x25519-sha512"; Git has no equivalent for HTTPS groups.239

Cryptographic operations

  • HTTPS: Git calls libcurl (“libcurl library is used for fetching and pushing repositories over http:// or https://”), so TLS 1.3 version, groups (for example X25519MLKEM768) and certificates come from libcurl’s TLS library.1 Git sets only http.sslVersion, http.sslCipherList, http.sslBackend, http.sslCert, http.sslKey and http.sslCAInfo; no group or curve setting is documented.2
  • Alpine 3.25 git 2.56.1-r0 depends on so:libcurl.so.4, so its groups are the system libcurl’s; the proof below records what it offers.10
  • SSH: core.sshCommand or GIT_SSH_COMMAND sets the command (default ssh) and the algorithms are that program’s; see SSH and OpenSSH.311 ssh.variant selects argument style; the ssh variant gets -o option.9
  • Signing (gpg.format: openpgp default, x509, ssh; programs gpg, gpgsm, ssh-keygen, via gpg.<format>.program) places no key type restriction on any format.45
gpg.format Program Post-quantum state
openpgp gpg classical in released GnuPG
x509 gpgsm ML-DSA signing in the development branch, unreleased
ssh ssh-keygen -Y sign lists hybrid key type mldsa44-ed25519; whether -Y sign accepts it is not documented
  • GnuPG: unreleased 2.5.25 NEWS lists “gpgsm: Support for importing ML-DSA signed certificates” and “gpgsm: Support for ML-DSA signing and verification”; the newest release is 2.5.24 (2026-09-23). gpg has composite Kyber+ECC keys since 2.5.0 and ML-KEM encryption in 2.5.23 behind --allow-9980, which Git does not use; no post-quantum signature for gpg.7
  • SSH signing: user.signingKey takes a private key path, a public key with ssh-agent, or key::-prefixed public key;12 verification uses gpg.ssh.allowedSignersFile, optionally a cert-authority key.4 ssh-keygen generates ecdsa, ecdsa-sk, ed25519 (default), ed25519-sk, mldsa44-ed25519, rsa and says -Y sign uses “an SSH key” without naming types; neither project documents Git signing with mldsa44-ed25519. See ssh-mldsa44-ed25519.48
  • The 2.34 notes: SSH keys sign “object and push-cert signing” but “cannot be used with ssh-keygen from OpenSSH 8.7, whose support for it is broken.”13

Versions

Change Version Package URL Source
gpg.format accepts openpgp or x509, with gpg.<format>.program; X.509 via gpgsm 2.19 pkg:generic/git@2.19.0 14
SSH keys can sign objects and push certificates (gpg.format ssh) 2.34 pkg:generic/git@2.34.0 13
Latest release (2026-10-26); no post-quantum entry in its notes 2.56.1 pkg:generic/git@2.56.1 615

No release notes mention ML-KEM, ML-DSA or SLH-DSA (checked 2026-12-05 for 2.56.0).15

Configuration

  • Enable: no Git switch; needs a libcurl TLS library or an ssh that offers it, for example OpenSSH 10.0 or later with mlkem768x25519-sha256 (see OpenSSH).
  • Disable classical over SSH (a server offering none cannot be reached):39
git config core.sshCommand "ssh -o KexAlgorithms=mlkem768x25519-sha256,sntrup761x25519-sha512"
  • HTTPS: only http.sslVersion and http.sslCipherList; groups are set in libcurl or the TLS library.2

Open work

  • No open issue or pull request about post-quantum algorithms on gitgitgadget/git; the lore.kernel.org archive refused the request (checked 2026-12-05).16

Distributions

Distribution Package Dependency on Source
Alpine 3.25 git 2.56.1-r0 so:libcurl.so.4 10

The Alpine package lists no dependency on an SSH client.

Proofs

References

  1. Git INSTALL, section on libcurl, commit 566b6997. https://github.com/git/git/blob/566b6997dd4710b625c0882cf10a7443bf52d183/INSTALL (accessed 2026-12-05) ↩ ↩2

  2. Git Documentation/config/http.adoc, http.sslVersion, http.sslCipherList, http.sslBackend, commit 566b6997. https://github.com/git/git/blob/566b6997dd4710b625c0882cf10a7443bf52d183/Documentation/config/http.adoc (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5

  3. Git Documentation/config/core.adoc, core.sshCommand, commit 566b6997. https://github.com/git/git/blob/566b6997dd4710b625c0882cf10a7443bf52d183/Documentation/config/core.adoc (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5

  4. Git Documentation/config/gpg.adoc, gpg.format, gpg.<format>.program, gpg.ssh.allowedSignersFile, commit 566b6997. https://github.com/git/git/blob/566b6997dd4710b625c0882cf10a7443bf52d183/Documentation/config/gpg.adoc (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4

  5. Git Documentation/gitformat-signature.adoc, commit 566b6997. https://github.com/git/git/blob/566b6997dd4710b625c0882cf10a7443bf52d183/Documentation/gitformat-signature.adoc (accessed 2026-12-05) ↩ ↩2

  6. Git home page, “Latest source release 2.56.1 (2026-10-26)”. https://git-scm.com/ (accessed 2026-12-05) ↩ ↩2

  7. GnuPG NEWS, versions 2.5.0 to 2.5.25 (unreleased), commit 52c687ba (2026-12-03). https://github.com/gpg/gnupg/blob/52c687ba11736fe51c461b1e8f9f79370d792365/NEWS (accessed 2026-12-05) ↩ ↩2

  8. ssh-keygen(1), OpenBSD manual pages, -t key types and -Y sign. https://man.openbsd.org/ssh-keygen.1 (accessed 2026-12-05) ↩ ↩2

  9. Git Documentation/config/ssh.adoc, ssh.variant, commit 566b6997. https://github.com/git/git/blob/566b6997dd4710b625c0882cf10a7443bf52d183/Documentation/config/ssh.adoc (accessed 2026-12-05) ↩ ↩2 ↩3

  10. Alpine package git, branch v3.25, depends so:libcurl.so.4. https://pkgs.alpinelinux.org/package/v3.25/main/x86_64/git (accessed 2026-12-05) ↩ ↩2

  11. Git Documentation/git.adoc, GIT_SSH and GIT_SSH_COMMAND, commit 566b6997. https://github.com/git/git/blob/566b6997dd4710b625c0882cf10a7443bf52d183/Documentation/git.adoc (accessed 2026-12-05) ↩

  12. Git Documentation/config/user.adoc, user.signingKey, commit 566b6997. https://github.com/git/git/blob/566b6997dd4710b625c0882cf10a7443bf52d183/Documentation/config/user.adoc (accessed 2026-12-05) ↩

  13. Git 2.34 release notes. https://github.com/git/git/blob/566b6997dd4710b625c0882cf10a7443bf52d183/Documentation/RelNotes/2.34.0.adoc (accessed 2026-12-05) ↩ ↩2

  14. Git 2.19 release notes, gpg.format and gpg.<format>.program. https://github.com/git/git/blob/566b6997dd4710b625c0882cf10a7443bf52d183/Documentation/RelNotes/2.19.0.adoc (accessed 2026-12-05) ↩

  15. Git 2.56 release notes. https://github.com/git/git/blob/566b6997dd4710b625c0882cf10a7443bf52d183/Documentation/RelNotes/2.56.0.adoc (accessed 2026-12-05) ↩ ↩2

  16. GitHub issue and pull request search, gitgitgadget/git, terms ML-DSA, quantum, mldsa. https://github.com/gitgitgadget/git/pulls?q=quantum (accessed 2026-12-05) ↩


Edit: Git

If you give an email address it is recorded publicly as the author of the commit, and GitHub will link the commit to your account if that address belongs to one.

Edits are reviewed before they appear. By submitting you release your contribution under CC BY-SA 4.0. Read the editorial guidelines first.

This site uses Just the Docs, a documentation theme for Jekyll.