Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gpg --gen-key
- Please select what kind of key you want:
- (1) RSA and RSA (default)
- (2) DSA and Elgamal
- (3) DSA (sign only)
- (4) RSA (sign only)
- What keysize do you want? (2048)
- Key is valid for? (0)
- You need a user ID to identify your key;
- the software constructs the user ID
- from the Real Name, Comment and Email Address in this form:
- "Name Title (some comment) <samplename@example.com>"
- Real name: My Name
- Email address: example@email.com
- Comment: comment
- You selected this USER-ID:
- "My Name (comment) <example@email.com>"
- You need a Passphrase to protect your secret key.
- gpg: key XXXXXXXL marked as ultimately trusted
- public and secret key created and signed.
- pub ABCDE/XXXXXXXL 2016-06-09
- Key fingerprint = XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXXL
- uid My Name (comment) <example@email.com>
- sub ABCDE/XXXXXXXM 2016-06-09
- export GPGKEY=XXXXXXXM
- killall -q gpg-agent
- eval $(gpg-agent --daemon)
- export GPGKEY=XXXXXXXM
- gpg --cert-digest-algo=SHA256 --edit-key XXXXXXXM
- Secret key is available.
- pub ABCDE/XXXXXXXM created: 2016-06-09 expires: never usage: SC
- trust: ultimate validity: ultimate
- [ultimate] (1). My Name (comment) <example@email.com>
- Command>
- addkey
- Please select what kind of key you want:
- (2) DSA (sign only)
- (4) Elgamal (encrypt only)
- (5) RSA (sign only)
- (6) RSA (encrypt only)
- What keysize do you want? (2048)
- Key is valid for? (0)
- pub ABCDE/XXXXXXXL created: 2016-06-09 expires: never usage: SC
- trust: ultimate validity: ultimate
- sub ABCDE/XXXXXXXM created: 2016-06-09 expires: never
- sub ABCDE/XXXXXXXN created: 2016-06-09 expires: never usage: E
- [ultimate] (1). My Name (comment) <example@email.com>
- Command>
- save
- gpg --list-keys
- pub ABCDE/XXXXXXXL 2016-06-09
- uid My Name (comment) <example@email.com>
- sub ABCDE/XXXXXXXM 2016-06-09
- sub ABCDE/XXXXXXXN 2016-06-10
- `gpg --list-secret-keys`
- sec ABCDE/XXXXXXXL 2016-06-09
- uid My Name (comment) <example@email.com>
- sub ABCDE/XXXXXXXM 2016-06-09
- sub ABCDE/XXXXXXXN 2016-06-10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement