[fpc-pascal] Re: RE : Synapse: SSH client+cryptlib+private key

Reinier Olislagers reinierolislagers at gmail.com
Sat Feb 4 10:28:32 CET 2012


On 4-2-2012 7:34, Ludo Brands wrote:
>> I've been fiddling with connecting to an SSH server.
>>
>> Thanks to Ludo Brands' help I can use username/password with 
>> Synapse (stable)+cryptlib.  I'm fiddling and trying to get 
>> private key authentication to work.
>> Thanks,
>> Reinier
>>
> After some "fiddling" I finally got it working. There are some more fields
> needed for private key authorization:
> 
>     FTelnetSend.Sock.SSL.PrivateKeyFile:='path to pkcs#15 formated key
> file';
>     TSSLCryptLib(FTelnetSend.Sock.SSL).PrivateKeyLabel:='the label that
> identifies the private key in the key file';
>     FTelnetSend.Sock.SSL.KeyPassword:='the passphrase for the key file';
> 
> The first line is the most difficult to sort out. ssh_keygen nor openssl
> support pkcs#15. The pkcs#15 format is used in crypto cards but almost never
> in files. A little howto (perhaps there are shorter routes but I haven't
> found one):
> -Fire up your linux system
<snip>

> That's it. 
> 
> Ludo
Quite some fiddling! Thanks a million.

Looking over your instructions it seems it's mostly a matter of
converting keys, and fortunately the server only needs to accept the
final key...

I'll give it a go & report back

Thanks again,
Reinier



More information about the fpc-pascal mailing list