Ego @ czm-desktop :~ $ Sudo-I
[Sudo] password for mego:
Root @ czm-desktop :~ # Sudo GPG -- keyserver pgpkeys.mit.edu -- Recv
0bc7bec479fc1f8agpg: Download the key '79fc1f8a 'from the HKP Server
Pgpkeys.mit.edu
GPG: Key 79fc1f8a: "moblin build (moblin build user)
<Build@moblin.org> "not changed
GPG: Total number of processed items: 1
GPG: unchanged: 1
Root @ czm-desktop :~ # GPG-H
GPG (GnuPG) 1.4.10
Copyright (c) 2008 Free Software Foundation, Inc.
License gplv3 +: gnu gpl Version 3 or later
<Http://gnu.org/licenses/gpl.html>
This is free software: You are free to change and redistribute
It.
There is no warranty, to the extent permitted by law.
Home :~ /. GnuPG
Supported algorithms: [Linux community www.linuxidc.com]
Public Keys: RSA, RSA-E, RSA-S, ELG-E, DSA
Symmetric encryption: 3DES, cast5, blowfish, AES, aes192, aes256, twofish,
Camellia128,
Camellia192, camellia256
Hash: MD5, sha1, ripemd160, sha256, sha384, sha512, sha1 _
Compression: no compression, zip, zlib, Bzip2
Syntax: GPG [Option] [file name]
Signature, check, encryption or decryption
The default operation depends on the input data.
Command:
-S, -- sign [file name] to generate a signature
-- Clearsign [file name] generates a plaintext Signature
-B, -- detach-sign to generate a separate Signature
-E, -- encrypt: encrypt data
-C, -- encryption Ric only uses symmetric encryption
-D, -- decrypt data (default)
-- Verify
-- List-keys
-- List-Sigs: List keys and signatures
-- Check-Sigs: List and check the Key signature
-- Fingerprint: List keys and fingerprints
-K, -- list-secret-keys to list private keys
-- Gen-key generates a new pair of key pairs
-- Delete-keys: Delete the key from the Public Key Ring
-- Delete-secret-keys: Delete the key from the key ring of the private key.
-- Sign-key: Add a signature to a key
-- Lsign-key: Add a local signature for a key
-- Edit-key: edit a key or add a signature to it
-- Gen-Revoke generates a revocation Certificate
-- Export
-- Send-keys: exports the key to a public key server.
-- Recv-keys import the key from the Public Key Server
-- Search-keys: Search for keys on the Public Key Server
-- Refresh-keys update all local keys from the Public Key Server
-- Import/merge keys
-- Card-status: prints the smart card status
-- Card-Edit: change the data on the Smart Card
-- Change-pin: Change the pin of the Smart Card
-- Update-trustdb update trust Database
-- Print-MD algorithm [file]
Print the message hash value using the specified Hash Algorithm
Option:
-A, -- armor output is encapsulated in ASCII
-R, -- recipient. A Class A is encrypted for the recipient "Class ".
-U, -- local-user use this user ID for signature or decryption
-Z n: Set the compression level to n (0 indicates no compression)
-- Textmode uses the standard text mode
-O, -- output specifies the output file
-V, -- verbose detailed mode
-N, -- dry-run is not changed
-I, -- ask before interactive Overwrite
-- Openpgp behaviors strictly follow openpgp Definitions
-- Pgp2 generates packets compatible with PGP 2.x
(See online instructions for a complete list of all commands and options)
Example:
-Se-r Bob [file name] is the recipient's signature and encryption of Bob.
-- Clearsign [file name]: sign in plaintext
-- Detach-sign [file name] to create a separate Signature
-- List-keys [A. A] display key
-- Fingerprint [A. A] fingerprint display
Report program defects to the gnupg-bugs@gnu.org.
Please report the problem of Simplified Chinese translation to <i18n-zh@googlegroups.com>.
Root @ czm-desktop :~ # GPG -- list-keys
/Root/. GnuPG/pubring. GPG
------------------------
Pub 1024d/79fc1f8a
UID moblin build (moblin build user)
<Build@moblin.org>
Sub 2048g/cb3c559d
Root @ czm-desktop :~ # GPG-A -- export 0bc7bec479fc1f8a> meego. Keys
Root @ czm-desktop :~ # Ls
Bin meego. Keys repo public template video image document download music
Root @ czm-desktop :~ # OpenSSL X509-In meego. Keys-text-noout
Unable to load Certificate
1723: Error: 0906d066: PEM routines: pem_read_bio: bad end
Line: pem_lib.c: 749:
Root @ czm-desktop :~ # OpenSSL RSA-In meego. Keys-text-noout
Unable to load Private Key
1724: Error: 0906d066: PEM routines: pem_read_bio: bad end
Line: pem_lib.c: 749:
Root @ czm-desktop :~ # Vi meego. Keys
Root @ czm-desktop :~ # Pwd
/Root
Root @ czm-desktop :~ # Ls-l
Total usage 60
Drwxr-XR-x 2 root Root 4096 Bin
-RW-r -- 1 Root 1707 meego. Keys
-Rwxr-XR-x 1 Root 17211 Repo
Drwxr-XR-x 2 root Root 4096 public
Drwxr-XR-x 2 root Root 4096 Template
Drwxr-XR-x 2 root Root 4096 video
Drwxr-XR-x 2 root Root 4096 Image
Drwxr-XR-x 2 root Root 4096 document
Download drwxr-XR-x 2 root Root 4096
Drwxr-XR-x 2 root Root 4096 music
Drwxr-XR-x 2 root Root 4096 Desktop
Root @ czm-desktop :~ # Chown meego. Keys
Chown: invalid user: "meego"
Root @ czm-desktop :~ # Chown mego meego. Keys
Root @ czm-desktop :~ # VM meego. Keys/
The program "VM" has not been installed. You can use the following command to install:
Apt-Get install mgetty-voice
Root @ czm-desktop :~ # Mv meego. Keys/
Root @ czm-desktop:
Address: http://www.linuxidc.com/Linux/2010-12/30313.htm