9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: David du Colombier <0intro@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] How do I get a CSR CA's like?
Date: Sat, 23 May 2015 18:40:27 +0200	[thread overview]
Message-ID: <CANUoZoFuYU211GcZ7cGoXnBcs-o1k5_pQijXD5conUaM2mwg_A@mail.gmail.com> (raw)
In-Reply-To: <B485F968-C078-4490-8DD4-95C97BEED5DF@me.com>

Personnaly, I don't have auth/rsa2csr, but I generate the certificate
request from Linux using OpenSSL:

$ openssl req -newkey rsa:2048 -days 730 -keyout key.pem -out csr.pem
-subj "/C=FR/ST=Paris/L=Paris/CN=9grid.fr" -nodes

Then, I convert the key from PEM to DER format:

$ openssl rsa -in key.pem -inform PEM -out key.der -outform DER

Then, I get the certificate from the CA and copy it to Plan 9:

% cp crt.pem /sys/lib/tls/cert.pem

Finally, I import the DER key to factotum:

% auth/asn12rsa -t 'proto=rsa service=tls owner=*' key.der >key
% ramfs -p
% cd /tmp
% auth/secstore -g factotum
% cat key >>factotum
% auth/secstore -p factotum
% cat factotum | read -m >/mnt/factotum/ctl

--
David du Colombier



  reply	other threads:[~2015-05-23 16:40 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-23 15:31 Brantley Coile
2015-05-23 16:40 ` David du Colombier [this message]
2015-05-23 17:08 ` lucio
2015-05-24 12:10   ` Brantley Coile
2015-05-24 13:07     ` lucio
2015-05-24 15:10     ` Skip Tavakkolian
2015-05-25 19:06       ` Brantley Coile
2015-05-26 13:27         ` Brantley Coile
2015-05-26 14:44           ` Brantley Coile
2015-05-26 14:46             ` Brantley Coile
2015-05-26 18:00           ` lucio
2015-05-26 19:35             ` Brantley Coile
2015-05-26 19:44               ` Joe Bowers
2015-05-27  2:24                 ` lucio
2015-05-27 16:41                 ` cinap_lenrek
2015-05-27 17:57                   ` cinap_lenrek
2015-05-23 17:43 ` balaji

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=CANUoZoFuYU211GcZ7cGoXnBcs-o1k5_pQijXD5conUaM2mwg_A@mail.gmail.com \
    --to=0intro@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).