Skip to content

Instantly share code, notes, and snippets.

View shantanukhanwalkar's full-sized avatar

Shantanu Khanwalkar shantanukhanwalkar

View GitHub Profile
@krisleech
krisleech / renew-gpgkey.md
Last active March 28, 2024 09:50
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@flbuddymooreiv
flbuddymooreiv / passgitgpg.md
Last active March 9, 2024 12:33
Setting up pass on git with a gpg key

The following shell transcript shows how to:

  • Create a GPG key
  • Create a pass database
  • Add git support to the pass database
  • Create a remote git repository
  • Push the pass database to the remote git repository
  • Fetch and display your passwords from another host

It is assumed that the pass package has been installed on both the first and second computers.