rsa(8): document auth/x5092pub, fix usage lines

This commit is contained in:
cinap_lenrek 2021-07-04 22:38:22 +00:00
parent 58b61ff9b9
commit 78cf847bfb
3 changed files with 22 additions and 3 deletions

View file

@ -1,6 +1,6 @@
.TH RSA 8
.SH NAME
rsagen, rsafill, asn12rsa, rsa2asn1, rsa2pub, rsa2ssh, rsa2x509, rsa2csr \- generate and format rsa keys
rsagen, rsafill, asn12rsa, rsa2asn1, rsa2pub, rsa2ssh, rsa2x509, rsa2csr, x5092pub \- generate and format rsa keys
.SH SYNOPSIS
.B rsagen
[
@ -63,6 +63,13 @@ rsagen, rsafill, asn12rsa, rsa2asn1, rsa2pub, rsa2ssh, rsa2x509, rsa2csr \- gene
[
.I file
]
.PP
.B x5092pub
[
.B -r
] [
.I file
]
.SH DESCRIPTION
Plan 9 represents an RSA key as an attribute-value pair list
prefixed with the string
@ -245,6 +252,18 @@ avoiding it being stored unencrypted on the filesystem.
takes the
.I subject
and a RSA private key and outputs a signing request in ASN.1 format.
.PP
The program
.I x5092pub
converts a binary certificate (or certificate request when
.B -r
flag is given)
read from
.I file
or stdin,
and outputs the public key with a
.B subject
attribute on standard output.
.SH EXAMPLES
Generate a fresh key and use it to start a TLS-enabled web server:
.IP

View file

@ -9,7 +9,7 @@
void
usage(void)
{
fprint(2, "usage: aux/rsa2csr 'C=US ...CN=xxx' [key]\n");
fprint(2, "usage: auth/rsa2csr 'C=US ...CN=xxx' [key]\n");
exits("usage");
}

View file

@ -12,7 +12,7 @@ char subject[1024];
void
usage(void)
{
fprint(2, "usage: aux/x5092pub [-r] [file]\n");
fprint(2, "usage: auth/x5092pub [-r] [file]\n");
exits("usage");
}