Information is gathered from: here and here.
- Preparation
- Become a member of the fuse group
sudo adduser your_username fuse
newgrp - fuse - Create a directory for the encrypted files (on the remote storage)
- Create a mount point (somewhere in home)
- Create the encrypted system/Mount the encrypted system
encfs folder_to_mount mount_point
- Use it
- Umount
fusermount -u mount_point
- Create signing subkey
gpg --edit-key 0xFFFFFFFF
addkey - Backup the key
gpg --export 0xFFFFFFFF > publickey.gpg
gog --export-secret-keys > secretkeys.gpg
gpg --export-secret-subkeys > secretsubkeys.gpg - Set the gnupg environment to the encrypted location
export GNUPGHOME=mount_point
- Unset the gnupg environment
unset GNUPGHOME
- Remove the private key for the master
gpg --delete-secret-keys 0xFFFFFFFF
- Check that the private key is removed
gpg --edit-key 0xFFFFFFFF
gpg addkey
Adding the subkey should fail - Re-import the secret key
gpg --import secretkey.gpg
- Send the key to the keyserver
gpg --send-key 0xFFFFFFFF