Skip to content

Demo of Git Commit Signing Using X509 Certificates

Notifications You must be signed in to change notification settings

darinegan/signed-commits-x509

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Git Commit Signing Using X509 Certificates

Setup

For more information, visit How to Create an X509 Certificate.

Configure

From your Git repository, execute the following set of commands.

Signing Parameters

git config --local commit.gpgsign 'true'
git config --local gpg.program 'gpgsm'

Identity Parameters

git config --local user.name 'John Doe'
git config --local user.email '[email protected]'
git config --local user.signingkey 'Thumbprint'

Usage

git commit -S -m 'Your Commit Message'

Verify

git cat-file commit HEAD

tree 4eedc1902c2f7e309435241915f8f16c47e49726
author Darin Egan <[email protected]> 1542811784 +0000
committer Darin Egan <[email protected]> 1542967722 +0000
gpgsig -----BEGIN SIGNED MESSAGE-----
 MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0B
 ...
 tLPqrL2mmYp0NRnnV/q/Zus3fEfasqG8o4rAt1rhHfU5wL/KC4XuoJR+AAAAAAAA
 -----END SIGNED MESSAGE-----

Genesis

References

Fin.

About

Demo of Git Commit Signing Using X509 Certificates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published