Skip to content

dnaka91/gitsign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Signing Git commits with SSH in Rust

Minimal application that showcases how to create SSH-signed commits in Rust with the two popular crates git2 (crates.io, docs.rs) and gix (crates.io, docs.rs).

Note: This sample expects an existing SSH key in your home directory ~/.ssh. If it is encrypted it will interactively ask for the password to decrypt it for the signing step.

Using the gpgsig header for SSH signatures

Although not documented anywhere, the gpgsig header is used for SSH signatures as well. This can be verified by making a signed commit with the Git CLI, assuming it is properly configured for SSH signing.

Then, the raw git commit can be inspected with the following command in any git repo:

git rev-list --format=raw --max-count=1 HEAD

License

This project is licensed under MIT License (or http://opensource.org/licenses/MIT).

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages