Guest User

Untitled

a guest
Mar 17th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. gpg --decrypt something.gpg # this works
  2. gpg2 --decrypt something.gpg # this fails
  3.  
  4. gpg --list-secret-keys # reads from ~/.gnupg/secring.gpg
  5. gpg2 --list-secret-keys # reads from ~/.gnupg/pubring.gpg (pubring?!)
  6.  
  7. /home/<username>/.gnupg/pubring.gpg
  8. ---------------------------------
  9. sec rsa4096/AAAAAAAA <date> [SC]
  10. uid [ultimate] <description of me>
  11. ssb rsa4096/BBBBBBBB <date> [E]
  12.  
  13. > keyinfo --list
  14. S KEYINFO <keygrip associated with AAAAAAAA> D - - - P - - -
  15. S KEYINFO <keygrip associated with BBBBBBBB> D - - - P - - -
  16. OK
  17.  
  18. gpg: using PGP trust model
  19. gpg: using subkey BBBBBBBB instead of primary key AAAAAAAA
  20. gpg: This key belongs to us
  21. gpg: reading from 'testfile'
  22. gpg: writing to 'testfile.gpg'
  23. gpg: RSA/AES256 encrypted for: "BBBBBBBB <description of me>"
  24.  
  25. gpg: public key is BBBBBBBB
  26. gpg: using subkey BBBBBBBB instead of primary key AAAAAAAA
  27. gpg: using subkey BBBBBBBB instead of primary key AAAAAAAA
  28. gpg: encrypted with 4096-bit RSA key, ID BBBBBBBB, created <date>
  29. "<description of me>"
  30. gpg: public key decryption failed: Operation cancelled
  31. gpg: decryption failed: No secret key
  32.  
  33. gpg2 --import ~/.gnupg/secring.gpg
  34.  
  35. gpg --gen-key
  36.  
  37. gpg --gen-key
Add Comment
Please, Sign In to add comment