From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Tue, 17 Dec 2013 23:00:18 +0100 Message-ID: From: =?ISO-8859-1?Q?Jean=2DAndr=E9_Santoni?= To: 9fans@9fans.net Content-Type: multipart/alternative; boundary=90e6ba6e8ce2d231bf04edc20d44 Subject: [9fans] Encoding private RSA key to PEM with p9p Topicbox-Message-UUID: 9e9b7f60-ead8-11e9-9d60-3106f5b1d025 --90e6ba6e8ce2d231bf04edc20d44 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, I'm using golang to code a 9p filesystem on linux. I wish to use srv + factotum + 9pfuse from p9p as client to test the fs. The server uses TLS with client authentication. Golang tls lib need keys in PEM format (I think). On the client side, factotum need the keys in plan9 format. I have no problem converting the public keys to PEM, using rsa2x509 | pemencode. However, no man explains how to encode a private key to PEM. I tried to do the opposite : generating keys as PEM using linux's openssl, then convert them to plan9 format using pemdecode without success. Any idea? --=20 Jean-Andr=E9 Santoni --90e6ba6e8ce2d231bf04edc20d44 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi, I'm using golang to code a 9p filesystem on linux.= I wish to use srv + factotum + 9pfuse from p9p as client to test the fs.The server uses TLS with client authentication. Golang tls lib need keys= in PEM format (I think). On the client side, factotum need the keys in pla= n9 format.

I have no problem converting the public keys to PEM, us= ing rsa2x509 | pemencode. However, no man explains how to encode a private = key to PEM.

I tried to do the opposite : generatin= g keys as PEM using linux's openssl, then convert them to plan9 format = using pemdecode without success.

Any idea?

--
Jean-A= ndr=E9 Santoni
--90e6ba6e8ce2d231bf04edc20d44--