[Mirror] SSH public keys including those for verifying my commits
Go to file
Aminda Suomalainen ⚧ 1472219a5e
allowed_signers: add valid-after,valid-before options
2022-01-12 12:14:51 +02:00
aminda aminda: add mobile key just in case 2022-01-09 20:10:54 +02:00
README.md README.md: add two example git commands regarding sigs 2022-01-10 22:28:45 +02:00
allowed_signers allowed_signers: add valid-after,valid-before options 2022-01-12 12:14:51 +02:00

README.md

allowed_signers file for SSH/git

Git 2.34 brings support for signing commits with SSH key and having a SSH-compatible smartcard, I have to try this. It likely getting more common in the future doesn't hurt either and I have pgp-alt-wot which does about the same for PGP.

Where to find keys

Quick howto

I don't mean this to be used directly, only to be took inspiration from. See the first link in further reading.

mkdir -p ~/src/gitea.blesmrt.net/Mikaela
cd ~/src/gitea.blesmrt.net/Mikaela
git clone https://gitea.blesmrt.net/Mikaela/ssh-allowed_signers.git
git config --global gpg.ssh.allowedSignersFile ~/src/gitea.blesmrt.net/Mikaela/ssh-allowed_signers/allowed_signers

Git commands, such as git verify-commit --raw HEAD or git log --show-signature, should now recognised commits signed with keys I have allowed. In the last command it's fine to remove --global to only affect the single repository you are on (while I haven't tested this), should that repository be something only I am signing in or something I need to verify otherwise enough to list it here.

On the last command, git config turns it into absolute path, while manually edited .gitconfig can literally have the above. I wonder if the command would understand -- before the file, but not enough to actually try it 😃

Further reading

Forge support