Part I: generation, dissemination, void1. Generate Key pair:GPG--gen-keyInfo: Solar (solar000) solar123@solar.comKey ID:538E9DA12, 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--recv538e9da1 #下载3, the generation of public key recovery certificate: (for invalid key)1, the generation of recycling certificates: GPG--output revoke.asc--gen-revoke 538e9da12, uploaded to the server: GPG--keyserver hkp://keys.gnupg.net--send-keys 538e9da1 Part Two: Import Export1, export the public key: Gpg-o solar-pubkey--export 538e9da12. Export the private key: Gpg-o solar-subkey--export-secret-keys 538e9da13. User Import Public key: GPG--import Solar-pubkey4, to see if the public key has been imported: GPG--list-keys Part III: Encryption and decryption1. Encryption: Gpg-o test.gpg-er Solar Test2, decryption: Gpg-o test-d test.gpg3, Signature + encryption: Gpg-o test.sig-ser Solar Test4. To be continued. symmetric plus decryption:encryption: Gpg-o test.gpg-c Testdecryption: Gpg-o test-d test.gpg Part IV: Deleting keys0. Invalid public key: GPG--keyserver hkp://keys.gnupg.net--send-keys538e9da11, delete the private key: GPG--delete-secret-keys solar123@solar.com2, delete the public key: GPG--delete-keys solar123@solar.com
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.