Script that dumps a key and certificate to a PDF for printing. Also provdes a script for dumping GPG keys and CSRs to paper.
git clone ${THIS_REPO}
# For CentOS/RHEL/Fedora
sudo yum install -y dmtx-utils ImageMagick
# For Ubuntu(s)
sudo apt install dmtx-utils imagemagick
./papercert.sh key.pem cert.pem
xdg-open combined.pdf
./papercsr.sh domain.com.csr
xdg-open <CN>-combined.pdf
# Don't forget to print two-sided and save 50% the trees!
./papergpg.sh id.asc id.pub.asc
xdg-open combined.pdf
This was tested with the following scanners :
Disabling the the suffix setting that outputs CR,LF is pretty handy. Also when scanning, try to aim for the lower left corner of the codes, and the targeting dot should be roughly a of one of the squares.
|----|----|
| | |
| | |
|----|----|
| | |
|O | | <- Try and aim about here
|----|----|
Some modern text editors seem unhappy about cursor position. For example Visual Studio code improperly line feeds, even with line feed disabled on the scanner.
Vim seems to work just fine.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D