Skip to content

Instantly share code, notes, and snippets.

@RafaelPalomar
Last active April 22, 2020 14:26
Show Gist options
  • Save RafaelPalomar/2b0156957efaaf0d8498c6392774a920 to your computer and use it in GitHub Desktop.
Save RafaelPalomar/2b0156957efaaf0d8498c6392774a920 to your computer and use it in GitHub Desktop.

Configuration of pass vault in a new machine

Importing the GPG key to decrypt the files

  1. Export the GPG key from an existing system (if you don’t have it in an ironkey)
    	gpg --list-keys
        
  2. Grab the name id of the key and export private/public pair
    	gpg --output mygpgkey_pub.gpg --armor --export <id>
    	gpg --output mygpgkey_sec.gpg --armor --export-secret-key <id>
        
  3. Copy the files over to the new machine
  4. Import the keys in the new machine
    	gpg --import ~/pass_pub.gpg
    	gpg --allow-import-secret-key --import ~/pass_sec.gpg
        
  5. At this point you can git clone <repo> ./password-store

Troubleshooting

  1. Getting errors like the following
    gpg: no valid addressees
    gpg: [stdin]: encryption failed: No user ID
    Password encryption aborted.
        
    gpg --edit-key
    
    #And then in the prompt
    
    gpg> trust
        
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment