.ie \n(.g .ds Aq \(aq .el .ds Aq ' .TH sshd-openpgp-auth-add 1 "sshd-openpgp-auth-add " .SH NAME sshd\-openpgp\-auth\-add \- Add public SSH host keys as authentication subkeys to an OpenPGP certificate .SH SYNOPSIS \fBsshd\-openpgp\-auth add\fR [\fB\-f\fR|\fB\-\-fingerprint\fR] [\fB\-k\fR|\fB\-\-known\-hosts\fR] [\fB\-o\fR|\fB\-\-openpgp\-dir\fR] [\fB\-S\fR|\fB\-\-ssh\-dir\fR] [\fB\-s\fR|\fB\-\-stdout\fR] [\fB\-t\fR|\fB\-\-time\fR] [\fB\-h\fR|\fB\-\-help\fR] .SH DESCRIPTION Add public SSH host keys as authentication subkeys to an OpenPGP certificate .PP By default this command adds SSH host keys found in "/etc/ssh/" as authentication subkeys to an OpenPGP certificate in "/var/lib/sshd\-openpgp\-auth/". Custom locations for SSH public keys as well as OpenPGP certificates can be provided. If more than one OpenPGP certificate is found in the target directory, an OpenPGP fingerprint must be specified. When adding from SSH host key files the subkey creation time is derived from the file creation timestamp of the respective files. .PP It is possible to add subkeys by piping a known_hosts formatted string to this command when using the "\-\-known\-hosts" option. When adding from stdin the current time is used for the subkey creation time. .PP A custom creation time can be provided. .SH OPTIONS .TP \fB\-f\fR, \fB\-\-fingerprint\fR=\fIFINGERPRINT\fR An OpenPGP fingerprint to identify a specific certificate .RS May also be specified with the \fBSOA_FINGERPRINT\fR environment variable. .RE .TP \fB\-k\fR, \fB\-\-known\-hosts\fR Read the SSH public keys in known_hosts format from stdin instead of from a directory .TP \fB\-o\fR, \fB\-\-openpgp\-dir\fR=\fIDIR\fR A custom directory in which to look for OpenPGP certificates (defaults to "/var/lib/sshd\-openpgp\-auth/") .RS May also be specified with the \fBSOA_OPENPGP_DIR\fR environment variable. .RE .TP \fB\-S\fR, \fB\-\-ssh\-dir\fR=\fIDIR\fR A custom directory in which to look for SSH public keys (defaults to "/etc/ssh/") .RS May also be specified with the \fBSOA_SSH_DIR\fR environment variable. .RE .TP \fB\-s\fR, \fB\-\-stdout\fR Output the OpenPGP certificate to stdout instead of a file .TP \fB\-t\fR, \fB\-\-time\fR=\fITIME\fR A custom reference time formatted as an RFC3339 string (defaults to now) .RS May also be specified with the \fBSOA_TIME\fR environment variable. .RE .TP \fB\-h\fR, \fB\-\-help\fR Print help (see a summary with \*(Aq\-h\*(Aq)