add more steps for copying certs to vaults repository

This commit is contained in:
Anton Livaja 2025-02-11 01:49:54 -05:00
parent 710ef20d85
commit 7cb4cdd1a0
Signed by: anton
GPG Key ID: 44A86CFF1FDF0E85
1 changed files with 18 additions and 1 deletions

View File

@ -33,6 +33,12 @@
1. Switch to online machine
1. Open a terminal and navigate to the `vaults` repository or clone it:
* If already cloned: `cd ~/vaults`
* If not, clone using: `cd ~ && git clone <vaults_repository_url>`
1. Ensure you are on the correct branch:
* `git checkout main`
@ -41,13 +47,22 @@
* `git pull origin main`
1. Ensure you have the certificate copied locally. If on an SD card, plug in the SD card and use the following steps to copy certificate to online machine:
* To copy from SD card:
{{ #include ../../component-documents/finding-device-name.md:content }}
* `cp /media/cert.asc ~/vaults`
1. If using a certificate from [Personal PGP Key Provisioning](/generated-documents/all-levels/pgp-key-provisioning.html):
1. Obtain the fingerprint for the certificate:
* `fingerprint="$(sq keyring cert.asc | awk '{ print $2 }')"`
2. Copy the certificate to a name based on the keyring:
1. Copy the certificate to a name based on the keyring:
* `cp cert.asc "${fingerprint}.asc"`
@ -63,6 +78,8 @@
1. Place the file in `keys/all/<key_fingerprint>.asc`
* `mv <key_fingerprint>.asc keys/all/`
1. Stage the modified file:
* `git add keys/all/<key_fingerprint>.asc`