]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/man/8/rsa
aux/vga: remove panning, add screen tilting support
[plan9front.git] / sys / man / 8 / rsa
index 197028075426e76f170cad08dd7ab7a10187ec74..57a24e5ae5c7ba11658ed82ceba027849d60aed5 100644 (file)
@@ -28,6 +28,9 @@ rsagen, rsafill, asn12rsa, rsa2asn1, rsa2pub, rsa2ssh, rsa2x509, rsa2csr \- gene
 .PP
 .B rsa2asn1
 [
+-a
+]
+[
 .I file
 ]
 .PP
@@ -182,6 +185,9 @@ Comment attributes are preserved.
 is like
 .I rsa2pub
 but outputs the public key in ASN.1/DER format.
+With the
+.I -a
+flag a private key is read and encoded in ANS.1/DER format.
 .PP
 .I Rsa2ssh
 reads a Plan 9 RSA public or private key and prints the public portion 
@@ -274,6 +280,14 @@ Generate a certificate signing request (CSR) in PEM format:
 auth/rsa2csr 'CN=example.com' key |
        auth/pemencode 'CERTIFICATE REQUEST'
 .EE
+.PP
+Generate a tinc host key:
+.IP
+.EX
+auth/rsagen -t 'service=tinc role=client host=myhost' > myhost.key
+auth/rsa2pub < myhost.key |
+       auth/rsa2asn1 | auth/pemencode 'RSA PUBLIC KEY' > hosts/myhost
+.EE
 .SH SOURCE
 .B /sys/src/cmd/auth
 .SH "SEE ALSO