Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. * To add someone to your keychain (need to use keys.gnupg.net ip instead)
  2. ```
  3. gpg2 --keyserver `dig +short keys.gnupg.net | egrep "^[0-9]" | head -1` --search-key <personA@email.com | fingerprint>
  4. ```
  5.  
  6. * To trust someone you added to your keychain
  7. Non-interactive
  8. ```
  9. gpg2 --fingerprint --with-colons <personA@email.com | fingerprint> | sed -E -n -e 's/^fpr:::::::::([0-9A-F]+):$/\1:6:/p' | gpg2 --import-ownertrust
  10. ```
  11.  
  12. Interactive
  13. ```
  14. > gpg2 --edit-key <personA@email.com | fingerprint>
  15. ....
  16. gpg2> trust
  17. ....
  18. gpg2> 6
  19. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement