GPG Use instructions

Source: Internet
Author: User
Tags gnupg gpg
Reproduced from: http://www.alexgao.com/2009/01/24/gpg/

Part I: generation, dissemination, void 1. Generate Key pair: GPG--gen-key Info: Solar (solar000) solar123@solar.com Key ID:538E9DA1 2, upload and download the public key: (for others to use) gpg--keyserver hkp://keys.gnupg.net--send-keys 538e9da1 #上传       gpg--keyserver hkp://keys.gnupg.net--recv 538e9da1 #下载 3, the generation of public key recovery certificate: (for invalid key) 1, the generation of recycling certificates: GPG--output revoke.asc--gen-revoke 538e9da1 2, uploaded to the server: GPG--keyserver hkp://keys.gnupg.net--send-keys 538e9da1
Part Two: Import Export 1, export the public key: Gpg-o solar-pubkey--export 538e9da1 2. Export the private key: Gpg-o solar-subkey--export-secret-keys 538e9da1 3. User Import Public key: GPG--import Solar-pubkey 4, to see if the public key has been imported: GPG--list-keys
Part III: Encryption and decryption 1. Encryption: Gpg-o test.gpg-er Solar Test 2, decryption: Gpg-o test-d test.gpg 3, Signature + encryption: Gpg-o test.sig-ser Solar Test 4. To be continued.
symmetric plus decryption: encryption: Gpg-o test.gpg-c Test decryption: Gpg-o test-d test.gpg
Part IV: Deleting keys 0. Invalid public key: GPG--keyserver hkp://keys.gnupg.net--send-keys 538e9da1 1, delete the private key: GPG--delete-secret-keys solar123@solar.com 2, delete the public key: GPG--delete-keys solar123@solar.com

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.