Re: [9fans] 9front pegs CPU on VMware

2013-12-17 Thread cinap_lenrek
thats a surprising result. by dog pile lock you mean the runq spinlock no?

--
cinap



Re: [9fans] 9front pegs CPU on VMware

2013-12-17 Thread erik quanstrom
 thats a surprising result. by dog pile lock you mean the runq spinlock no?

yes.  

- erik



Re: [9fans] 9front pegs CPU on VMware

2013-12-17 Thread erik quanstrom
On Tue Dec 17 08:40:23 EST 2013, quans...@quanstro.net wrote:
  thats a surprising result. by dog pile lock you mean the runq spinlock no?
 
 yes.  

my guess is it is made worse by the probes outside the lock.

- erik



[9fans] Encoding private RSA key to PEM with p9p

2013-12-17 Thread Jean-André Santoni
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


Re: [9fans] Encoding private RSA key to PEM with p9p

2013-12-17 Thread David du Colombier
 I tried to do the opposite : generating keys as PEM using linux's
 openssl, then convert them to plan9 format using pemdecode without
 success.

You have to convert the key from PEM to DER with OpenSSL,
then convert it to the Factotum format using auth/asn12rsa:

openssl rsa -in key.pem -inform PEM -out key.der -outform DER
auth/asn12rsa -t 'proto=rsa service=tls owner=*' key.der key

-- 
David du Colombier