9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Jean-André Santoni" <jean.andre.santoni@gmail.com>
To: 9fans@9fans.net
Subject: [9fans] Encoding private RSA key to PEM with p9p
Date: Tue, 17 Dec 2013 23:00:18 +0100	[thread overview]
Message-ID: <CALWH6ND9Knanchn28a2N8Vx37F3+ceSiHRo8ZkaWHNAXrgYhKQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 623 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 757 bytes --]

             reply	other threads:[~2013-12-17 22:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-17 22:00 Jean-André Santoni [this message]
2013-12-17 22:16 ` David du Colombier
2013-12-19  1:31   ` Jean-André Santoni
2013-12-19  7:28     ` David du Colombier
2013-12-24  1:31       ` Jean-André Santoni
2013-12-25 21:31         ` David du Colombier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALWH6ND9Knanchn28a2N8Vx37F3+ceSiHRo8ZkaWHNAXrgYhKQ@mail.gmail.com \
    --to=jean.andre.santoni@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).