ref: f464b7ff16135fc4dddf30291dc5b7226651d2b3
parent: 83b854df0d2a98ca35f8d3215e7fe34531563b20
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Dec 28 06:46:15 EST 2018
rsa(8): add example for tinc(8) (thanks k0ga, qwx)
--- a/sys/man/8/rsa
+++ b/sys/man/8/rsa
@@ -274,6 +274,14 @@
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