shithub: riscv

Download patch

ref: 93a86cea66385d3e8ca94dc24b163d9f3149852f
parent: ad6b99359d4bc513e9a24f865bd310743b75e259
author: cinap_lenrek <[email protected]>
date: Sun Apr 17 03:33:35 EDT 2016

rsa(8): provide example for converting OpenSSL generated PEM file to factotum

--- a/sys/man/8/rsa
+++ b/sys/man/8/rsa
@@ -249,6 +249,14 @@
 cat key >/mnt/factotum/ctl
 ssh unix
 .EE
+.PP
+Convert a private key in PEM format (as generated by OpenSSL)
+and load it into factotum:
+.IP
+.EX
+auth/pemdecode 'PRIVATE KEY' key.pem | 
+	auth/asn12rsa -t 'service=tls' >/mnt/factotum/ctl
+.EE
 .SH SOURCE
 .B /sys/src/cmd/auth
 .SH "SEE ALSO