meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
git:pgp [2022/10/05 21:53] niziakgit:pgp [2022/10/06 10:55] (current) niziak
Line 1: Line 1:
 ====== signing git commits ====== ====== signing git commits ======
  
-===== configure remote machine ===== 
  
-Public key must be imported on remote machine +See [[sw:gpg:forwarding]]
-<code bash> +
-gpg --import usert@example.com-public.asc+
  
-gpg: key XXXXXXXXXXXXX: public key "User <user@example.com>" imported 
-gpg: Total number processed: 1 
-gpg:               imported: 1 
-</code> 
  
 <code bash> <code bash>
Line 20: Line 13:
 git config --global commit.gpgsign true git config --global commit.gpgsign true
 </code> </code>
 +
 +===== signing and verifying =====
 +
 +<code bash>
 +git verify commit <HASH>
 +
 +gpg:                using RSA key XXXXXXXXXX
 +gpg: Good signature from "User <user@example.com>" [unknown]
 +gpg: WARNING: This key is not certified with a trusted signature!
 +gpg:          There is no indication that the signature belongs to the owner.
 +Primary key fingerprint: XXXX XXXX ...
 +</code>
 +
 +See [[sw:gpg:trust_level]]
 +
 +
 +