rsa(8): add example for tinc(8) (thanks k0ga, qwx)
This commit is contained in:
parent
83b854df0d
commit
f464b7ff16
1 changed files with 8 additions and 0 deletions
|
@ -274,6 +274,14 @@ Generate a certificate signing request (CSR) in PEM format:
|
||||||
auth/rsa2csr 'CN=example.com' key |
|
auth/rsa2csr 'CN=example.com' key |
|
||||||
auth/pemencode 'CERTIFICATE REQUEST'
|
auth/pemencode 'CERTIFICATE REQUEST'
|
||||||
.EE
|
.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
|
.SH SOURCE
|
||||||
.B /sys/src/cmd/auth
|
.B /sys/src/cmd/auth
|
||||||
.SH "SEE ALSO
|
.SH "SEE ALSO
|
||||||
|
|
Loading…
Reference in a new issue