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 via email to