{{end}}
diff --git a/cert-card b/cert-card
new file mode 100755
index 0000000..56eca72
--- /dev/null
+++ b/cert-card
@@ -0,0 +1,98 @@
+#! /usr/bin/env bash
+
+set -euo pipefail
+
+certname=${1:-}
+fetchkey=${2:-}
+
+if [[ -z $certname || -z $fetchkey ]]; then
+ echo "usage: $0 "
+fi
+
+echo "Reading PEM from stdin..." >&2
+cat >/tmp/crt-$certname
+
+# When printing to the Brother QL-820WNB, the width of the image (as opposed to
+# the height) is scaled to the 6.2 cm of the label tape's width. In the
+# following, e.g., 984 x 696 px, means height x width. So the "second" number is
+# the one scaled to 6.2 cm.
+#
+# For example, with a portrait-mode image of 696 x 232 px, the "top" if the
+# image is scaled to the width of the paper roll (6.2 cm). If the "top" is 696
+# px, which the the nominal pixel width, then no scaling is neededd.
+#
+# 696 x 232 px
+# ^^^ ^^^
+# width height
+# (6.2 cm)
+#
+# - - - - - - - - - - +--------------+ ^
+# | RIGHT | |
+# | | |
+# PAPER UNROLLS THIS WAY | TOP | | width
+# --------------------> | | | 696 px
+# | (normal | | (6.2 cm)
+# | orienta.) | |
+# - - - - - - - - - - +--------------+ v
+# <-------------->
+# height 232 px (2.9 cm)
+#
+#
+# If I want the "right" of the image to scale to the 6.2 cm of the paper roll,
+# I need to --rotate 90. Since the "right" of the image is now scaled to the
+# width of the paper roll, I need to have an image with a in which case the size
+# is 696 x 984 px:
+#
+# 696 x 984 px (rotated 90 degrees)
+# ^^^ ^^^
+# width height
+# (6.2 cm)
+#
+# - - - - - - - - - - +------------------------------+ ^
+# | TOP | |
+# | | |
+# PAPER UNROLLS THIS WAY | | | width
+# --------------------> | RIGHT | | 696 px
+# | | | (6.2 cm)
+# | (rotated 90) | |
+# - - - - - - - - - - +------------------------------+ v
+# <------------------------------>
+# height 984 px (8.4 cm)
+#
+#
+# Format 1: 984 x 696 px (8.7 x 6.2 cm), requires --rotate 90 so that "696 px"
+# (the height) coincides with the the width of the paper roll.
+#
+# Format 2: 696 x 492 px (6.2 x 4.4 cm), requires no rotation.
+
+line1=$(
+ cat <&2
+echo "$url" | qrencode --type PNG --margin 4 -o - | convert -size 696x492 canvas:white \
+ \( -gravity Center -monochrome -filter point -interpolate nearest - -resize 492 \) -composite back-$certname.png
diff --git a/certificate.html b/certificate.html
index 9ea7b99..73bf310 100644
--- a/certificate.html
+++ b/certificate.html
@@ -8,9 +8,9 @@
+ href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&display=swap"
+ rel="stylesheet"
+ />
@@ -19,6 +19,7 @@