Skip to content

Instantly share code, notes, and snippets.

@bouzuya
Created January 26, 2013 02:58
Show Gist options
  • Select an option

  • Save bouzuya/4639812 to your computer and use it in GitHub Desktop.

Select an option

Save bouzuya/4639812 to your computer and use it in GitHub Desktop.
$ echo hello,gpg > samle.txt
$ cat sample.txt
hello,gpg
$ gpg --sign sample.txt
gpg: no default secret key: secret key not available
gpg: signing failed: secret key not available
$ man gpg
$ gpg --gen-key
# NOTE:
# RSA and RSA
# 2048 bit
# key does not expire at all
# ...
$ gpg --sign sample.txt
$ ls sample.txt*
sample.txt
sample.txt.gpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment