rsa(8): add example for tinc(8) (thanks k0ga, qwx)

This commit is contained in:
cinap_lenrek 2018-12-28 11:46:15 +01:00
parent 83b854df0d
commit f464b7ff16

View file

@ -274,6 +274,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