On 6-2-2012 13:20, mich...@freepascal.org wrote:
> On Mon, 6 Feb 2012, Ludo Brands wrote:
>>> I'm wondering if there's a quicker/easier way to:
>>> 1. use OpenSSH private key with FPC/Synapse/cryptlib SSH
>>> 2. perhaps generate the key yourself (I've skimmed through
>>> the cryptlib manual; perhaps it makes sense to use that). I'd
>>> be especially glad with links to any example source code or tools ;)
>>>
>>
>> Option 2 has similar problems: how to convert cryptlib created key file or
>> cert to ssh .pub file? Creating the key/cert with cryptlib is simple enough.
>> I modified TSSLCryptLib.CreateSelfSignedCert a little bit to store the
>> certificate to a file but I have found no way to convert the cert to .pub.
>> ssh-keygen that is used to generate the special format .pub needs the
>> private key to generate the public key. There are several messages on the
>> cryptlib mailing list regarding what the cryptlib author calls "just a pile
>> of homebrew formats used by various SSH implementations" .
>>
>> If somebody has another solution, I would also be eager to learn about it.
> 
> Maybe you can check the putty sources ? It contains algorithms to convert
> key files to/from SSH format  ?
> 
> Michael.

I agree that the problem would be similar though writing out a public
key in OpenSSH format might be easier as presumably there are more code
examples for this "homebrew"*) format - and thanks, Michael, I might
have a look at PuttyGen's sources...

*) omitting rant about comparison with RSA and their homebrewn PKCS
standards...

Regards,
Reinier

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to