-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsecretkeybackup.tex
79 lines (49 loc) · 1.88 KB
/
secretkeybackup.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
\documentclass[10pt]{article}
\input{keytemp/config.tex}
\usepackage{graphicx}
\usepackage{fancyvrb}
\usepackage{multicol}
\usepackage{listings}
\lstset{language=bash,
basicstyle=\footnotesize\ttfamily\scriptsize,
captionpos=b,
tabsize=2,
}
\usepackage{geometry}
\geometry{letterpaper, margin=10mm}
\setlength{\columnsep}{10mm}
\setlength{\columnseprule}{0.3pt}
\setlength{\parskip}{1.2ex}
\setlength{\parindent}{0em}
\pagenumbering{gobble}
\begin{document}
\section*{PaperKey Backup of GPG Key \keyid}
This is a backup of the \keytype \space \keyid, useful for \keyusage. These are made using the paperkey utility, both in human-readable text, as well as a QR code.
\ifx\keyid\primarykey
Any subkeys of this primary key are too large to be included with it, so they are exported separately, one subkey per page.
\else
This subkey is a part of primary key \primarykey, which was exported separately.
\fi
These formats do not contain the public key information, which will have to be obtained from a public key server when recombining using paperkey.
\begin{multicols}{2}
\subsection*{Fingerprint}
This key can be looked up using the 40-digit fingerprint of \scriptsize 0x\keyfingerprint \normalsize, or with this QR code:
\begin{center}
\includegraphics[width=0.5\columnwidth]{keytemp/\keyid-qrfpr.png}
\end{center}
\subsection*{QR Codes}
Below is the QR code backup. It contains the same hex as a human-readable paperkey, but without hex checksum or formatting. They can be read back in using:
\begin{lstlisting}
$ cat read-from-qr.txt | xxd -r -p |
paperkey --pubring ~/.gnupg/pubring.gpg -o recover.gpg
\end{lstlisting}
\begin{center}
\includegraphics[width={0.8\columnwidth}]{keytemp/\keyid-qr.png}
\end{center}
\columnbreak
\subsection*{Paperkey}
\fvset{fontsize=\tiny}
% \fvset{fontsize=5.5}
\VerbatimInput{keytemp/\keyid-paperkey.txt}
\end{multicols}
\end{document}