This commit is contained in:
albert 2024-05-01 21:12:51 +09:00
parent a36d5aff67
commit cde064ae21
No known key found for this signature in database
GPG key ID: 64F6C4EB46C4543A
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ source ~/.bashrc
# Import and trust the GPG key
echo ">>> Setting up user GPG key..... "
gpg --import ~/privkey.asc
gpg --import ~/keys.pgp
echo -e "5\ny\n" | gpg --command-fd 0 --expert --edit-key albert@sysctl.io trust
# Setup SOPS

View file

@ -18,7 +18,7 @@ drive=$(lsblk -o serial,name | grep NGN130R000980P2202 | awk {'print $2'})
sudo mkdir -p /tmp/drive
sudo cryptsetup luksOpen /dev/${drive}3 usb-luks
sudo mount /dev/mapper/usb-luks /tmp/drive
gpg --import /tmp/drive/gpg/albert@sysctl.io/privkey.asc
gpg --import /tmp/drive/gpg/albert@sysctl.io/keys.pgp
sudo umount /tmp/drive
sudo rmdir /tmp/drive
sudo cryptsetup luksClose /dev/mapper/usb-luks