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?

--
Jean-André Santoni