-
-
Notifications
You must be signed in to change notification settings - Fork 103
Home
Bob Sun edited this page Mar 15, 2017
·
42 revisions
$ gpg --gen-key
$ gpg --list-secret-keys
/Users/mssun/.gnupg/secring.gpg
-------------------------------
sec 2048R/D4763C61 2017-02-06
uid Bob Sun (Pass) (Test pass for iOS) <bob@mssun.me>
ssb 2048R/A3106936 2017-02-06
$ pass init "D4763C61"
$ pass git init
$ pass git remote add origin git@github.com:mssun/D4763C61.git # create the git repository first
$ pass generate -n spotify.com 20
$ pass ls
$ pass show spotify.com
$ pass edit spotify.com
$ pass git push --set-upstream origin master
$ pass git status
$ pass git pull
For more usage, please refer to Password Store homepage: https://www.passwordstore.org or
$ man pass
$ gpg --export -a D4763C61 > key.pub
$ gpg --export-secret-keys -a D4763C61 > key
$ scp key.pub key linux1:www/
$ wget https://.../key # make sure the key can be accessed by https connection
$ wget https://.../key.pub
You can also copy ASCII-armor encrypted key format to the app.
$ gpg --export -a D4763C61 # copy to the app
$ gpg --export-secret-keys -a D4763C61 # copy to the app
You can also use iTunes file sharing function to upload your gpg keys with names gpg_key.pub
and gpg_key
to the document root directory. The app will automatically use the keys for encryption and decryption.
- set Git repository (URL, username, authentication), note that the valid SSH URL should be
ssh://server:port/url/to/repository.git
(ssh://github.com:22/mssun/pass.git
) and the username is put in the next field under URL (e.g., git), only SSH key authentication is supported for SSH URL- HTTPS URL example:
- URL: https://gitlab.com/passforios-demo/demo.git
- Username: passforios-demo
- Authentication Method: Password
- SSH URL example:
- URL: ssh://git@gitlab.com/passforios-demo/demo.git (original is git@gitlab.com:passforios-demo/demo.git)
- remember to include username in the url
- remember to change ":" to "/"
- Username: git
- Authentication Method: SSH Keys
- URL: ssh://git@gitlab.com/passforios-demo/demo.git (original is git@gitlab.com:passforios-demo/demo.git)
- HTTPS URL example:
- set PGP key (URL, passphrase) (remember to remove the key from the server)
- pull down to sync password with the remote git
Table of contents generated with markdown-toc.