Created
May 25, 2014 12:34
-
-
Save roktas/def37170d18dd43e8d30 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get install pass rng-tools | |
sudo rngd -r /dev/urandom | |
gpg --batch --gen-key <<-EOF | |
%echo Generating a default key | |
Key-Type: DSA | |
Subkey-Type: ELG-E | |
Name-Real: staff | |
Name-Comment: foo | |
Name-Email: staff@foo.bar | |
Expire-Date: 0 | |
Passphrase: foo | |
%commit | |
%echo done | |
EOF | |
pass init -p staff staff | |
pass generate staff/host/foo 16 | |
pass | |
cat <<-EOF | |
foo makinesi için staff/host/foo parolası üretildi. | |
Denemek için: | |
PASSWORD_STORE_X_SELECTION=primary pass -c staff/host/foo | |
Panodaki parolayı shift-insert'e basarak veya orta fare tuşuyla alabilirsiniz. | |
Anahtarlığa "foo" parolasıyla erişeceksiniz. | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment