Generate a random password:
1
$ openssl rand -base64 18Examine ASN.1 structure of a CSR:
1
$ openssl asn1parse -i -in ./0000_csr-certbot.pemGenerate a key (interactive mode):
1
$ gpg --gen-keyYou can use the key generator in an unattended mode. Values in the example below are the same as the defaults proposed in the interactive mode above. Parameters in comments are there for reference:
1
$ gpg --gen-key --batch <<EOF2Key-Type: RSA3Key-Length: 20484Subkey-Type: RSA5Subkey-Length: 20486Expire-Date: 07Name-Real: Kevin8# Name-Email: [email protected]9# Name-Comment: My auto-generated key10# Passphrase: my_secret_passphrase11EOFList available keys for the current user:
1
$ gpg --list-keysDecrypt a file:
1
$ gpg --decrypt archive.001.tar.gpg --output archive.001.tarSame as above but for a collection of files:
1
$ gpg --multifile --decrypt archive.*.tar.gpg