Prerequisites
packages to be installed
packages to be installed
- rngd
- gpgv OR gpgv2
Step1: Create a Temporary Folder and CD to it
Step2: Generate GPG Key
- eval `gpg-agent --daemon --no-grab --write-env-file $HOME/.gpg-agent-info`
- export GPG_TTY=`tty`
- export GPG_AGENT_INFO
- gpg --gen-key
- Enter passphrase: ******
- Run in a Different terminal rngd -f -r /dev/urandom
Step3: read the key' s.
gpg -k
Sample Output:
GPG Key o/p:
.......+++++
+++++
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
.+++++
.................+++++
gpg: key 50F6E79D marked as ultimately trusted
public and secret key created and signed.
gpg: checking the trustdb
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
pub 2048R/50F6E79D 2015-08-14
Key fingerprint = 3C2C 81AA 5B9E 6772 1AEA 9AF3 78B2 D37D 50F6 E79D
uid ZeroOnePrograms <developer@zerooneprograms.com>
sub 2048R/EA01868C 2015-08-14
No comments:
Post a Comment