Hi,

I have written a small program that converts an encoded OpenSSL public key to the OpenSSH format. Its output can be used to fill the authorized_keys file.
You can get the source from the following link :
http://www.idrix.fr/Root/Samples/pubkey2ssh.c

It should compile under MacOSX with no problem. Tell me if it's not the case.

--
Mounir IDRASSI
IDRIX
http://www.idrix.fr

Shahin Khorasani wrote :
Sorry, the source code is not available. but you can write a customized application (Mounir explained the format properly)

- Shahin Khorasani

Kyle Hamilton wrote:
> Can the source be made available?  I would like to use it on MacOSX.
>
> -Kyle H
>
> On Fri, Dec 19, 2008 at 11:43 PM, Shahin Khorasani
> <[email protected]> wrote:
> >> Hi,
>>
>> You can download simple utility to transform PKCS#1 RSA public key to
>> opnessh public key format from here:
>> http://www.parssign.com/openssh_pk_linux.tar.gz
>>
>> It is free to use and linked statically on Linux (must works on most
>> distributions)
>>
>> Regards,
>> Shahin Khorasani
>>
>> Dhiva wrote:
>> >>> openssl x509 -in sample.pem -pubkey -noout
>>>
>>> What is the format of the pubkey ?
>>>
>>> How can i convert or transform this key to ssh-rsa format? I am talking
>>> about the ssh keys that are available in "authorized_keys" file.
>>>
>>> Or
>>> Does openssl has any tools to manage the pubkey ? like dismantle and
>>> assemble again.
>>>
>>> thanks
>>> dhiva
>>> ______________________________________________________________________
>>> OpenSSL Project                                 http://www.openssl.org
>>> Development Mailing List                       [email protected]
>>> Automated List Manager                           [email protected]
>>>
>>> >> ______________________________________________________________________
>> OpenSSL Project                                 http://www.openssl.org
>> Development Mailing List                       [email protected]
>> Automated List Manager                           [email protected]
>>
>> > ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> Development Mailing List                       [email protected]
> Automated List Manager                           [email protected]
> ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [email protected]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to