| 
  • This workspace has been inactive for over 11 months, and is scheduled to be reclaimed. Make an edit or click here to mark it as active.
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

GnuPG

Page history last edited by csaga 11 years, 5 months ago

Config variables (Windows only)

My Computer>Properties>Advanced>Environment Variables>Path %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\GNU\GnuPG

1. Generating a new keypair

     gpg --gen-key

2. Importing a secret key

gpg --import name.gpg

gpg --list-keys
gpg --edit-key name@bla.org

3. Edit keys

gpg --edit-key name
Command> trust
1 = Don't know
2 = I do NOT trust
3 = I trust marginally
4 = I trust fully s = please show me more information
Command> passwd - change password
Command> quit

4. Exporting a public key

     gpg --export -a "User name" public.key

5. Exporting a secret key

     gpg --export-secret-key -a > secret.key

6. Importing public key

     gpg --import name.asc

Delete keys

     gpg --delete-key name
     gpg --delete-secret-key name

Distributing keys

     gpg --keyserver gpg.mit.edu --send-keys "keyID"

Import keys from keyserver

     gpg --keyserver gpg.mit.edu --recv-key "keyID"

Generating a revocation certificate

     gpg --output revoke.asc --gen-revoke name

Revoking key components

     gpg --revkey

Sign and encrypt file

gpg -e -r blabla@gmail filename

Dencrypt file

gpg -o filename output -d encrypted filename (gpg -o blabla.txt -d blabla.txt.gpg) 

Comments (0)

You don't have permission to comment on this page.