/All/
|
index
catalog
recent
update
post
|
/math/
/tech/
/anime/
/misc/
/free/
/meta/
|
Guide
dark
mod
Log
P78744
Generate PGP keys in RAM
Tue 2024-02-20 03:53:58
link
reply
[bold:
Generate PGP keys in RAM
]
without saving to your main keyring
(Make sure /tmp is mounted to tmpfs)
>
[bold:
Create a new gpg keyring in /tmp
]
gpg --homedir /tmp/.gnupg
>
[bold:
Generate your key
]
gpg --homedir /tmp/.gnupg --generate-full-key
>
[bold:
Get the key id if u already forgot cause reeeee
]
gpg --homedir /tmp/.gnupg --list-keys
>
[bold:
Export your private key
]
gpg --homedir /tmp/.gnupg --armor --export-secret-key > /tmp/*****-private.asc
Then save it somewhere else by mv 'ing key to mounted drive or instead do:
gpg --homedir /tmp/.gnupg --armor --export-secret-key *****@***** > /dev/sda/*****-private.asc
replace /sda with correct drive
* Sharing your public key
>
[bold:
Export your public key in the terminal
]
gpg --homedir /tmp/.gnupg --armor --export *****@*****
Moved from
/tech/
Mod Controls:
x
Reason: