Skip to content
/ sgpg Public

Short gpg, tool for manage your gpg key (backup tarball, unprivileged keys, etc)

License

Notifications You must be signed in to change notification settings

szorfein/sgpg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sgpg


Gem Version

Short gpg, tool for manage your gpg key (backup tarball, unprivileged keys, etc)

Followed my post to create a secure gpg key, i need to update my keys all the 6 month on each PC and each time, it's very very annoying so i build this tool to gain time and mental sanity :).

You always need to create a gpg key as well

gpg --expert --full-generate-key

Install sgpg locally

gem install sgpg

You also need to install dependencies: tar, cryptsetup, shred and gpg.

Configure

The config is located at ~/.config/sgpg/config.yml. You can use the command line with --save:

sgpg --disk /dev/sdc2 --disk-encrypt --key [email protected] --save

You can register the disk/by-id or disk/by-uuid if you prefer.

sgpg --disk /dev/disk/by-id/wmn-0xXXXX-part2 --disk-encrypt --save

Usage

sgpg -h

When subkeys expire:

sgpg --last-master --edit-key # update expired keys, change password, etc...
sgpg --export # create master and lesser archive
sgpg --close # unmount and close disk

Import the last unpriviliged key (laptop and other)

sgpg --last-lesser --edit-key # trust (555)
sgpg --close # unmount and close disk

Manually choose an archive

sgpg --open # mount disk
sgpg --path-key /mnt/sgpg/Persistent/archive.tar --edit-key

Gem push

gem login
gem build sgpg.gemspec
gem push sgpg-0.0.1.gem

About

Short gpg, tool for manage your gpg key (backup tarball, unprivileged keys, etc)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages