> I have a program grepman that searches the actual man pages rather  
> than just the index (which is what lookman does). It turned up  
> nothing. The First Edition manual, which Uriel hosts, also has  
> nothing. I can't seem to figure out what this does.
cpu% auth/secretpem
usage: auth/secretpem key.pem > /mnt/factotum/ctl
cpu% 

The mere mention of factotum should have told you that
it wasn't from the first edition, or even the third.
"man pem" will explain what PEM format is, and point
you at rsa(8).  At that point a reasonable guess is that
it converts RSA-format PEM keys (like you'd have if you
generated an SSH key on Unix) into factotum format.

Let's see.

unix=; ssh-keygen -b 1024 -f /tmp/a
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /tmp/a.
Your public key has been saved in /tmp/a.pub.
The key fingerprint is:
9e:2e:8f:7b:70:8c:e0:ea:17:c8:ae:68:e2:8b:2d:53 [EMAIL PROTECTED]
unix=; 

cpu% auth/secretpem /mnt/term/tmp/a
key proto=sshrsa size=1024 ek=23 ...
cpu% 

Now that I know what it does, I have to admit 
I don't see why it exists:

cpu% auth/pemdecode 'RSA PRIVATE KEY' /mnt/term/tmp/a | 
        auth/asn12rsa |
        sed s/rsa/sshrsa/
key proto=sshrsa size=1024 ek=23 ...
cpu% 

Perhaps it predates the more general pemdecode and asn12rsa.
That pipeline should answer the original poster (Lucio?)'s
question about its implementation.

Plan 9 from User Space has an asn12dsa as well.  See
http://swtch.com/plan9port/man/man1/rsa.html

Russ


Reply via email to