Skip to content

Instantly share code, notes, and snippets.

@roktas
Created May 25, 2014 12:34
Show Gist options
  • Save roktas/def37170d18dd43e8d30 to your computer and use it in GitHub Desktop.
Save roktas/def37170d18dd43e8d30 to your computer and use it in GitHub Desktop.
#!/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