wodFtpDLX.net and Private key - WeOnlyDo Discussion board

wodFtpDLX.net and Private key (General questions)

by tcorbett, Friday, November 02, 2007, 14:10 (6231 days ago)

Hi,
I am using wodFtpDlx.net and connecting to a server using SFTP on port 22.
My customer now wants to use certificates and they supplied me with a file with a private key and not use passwords.


File looks like this:

-----BEGIN DSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES...,101AB...

vlgw...
...
...PHoSDVQ67T/HR
-----END DSA PRIVATE KEY-----

I cut out most of data in above example.

What is the easy and proper way to set the privatekey field.
I tried to read the data into a string, but get an error of failed to import key when trying to connect.

I am not that knowledgable on keys and encryption so any and all help would be apprecieated.

Thanks,
Tim

Re: wodFtpDLX.net and Private key

by woddrazen, Friday, November 02, 2007, 14:56 (6231 days ago) @ tcorbett

Hi Tim,


You should insert your private key to wodFtpDLX.NET PrivateKey Property in XML string value. To done that you can download wodSFTP.NET or wodSSH.NET and use wodKeyManager component.

wodKeyManager component is part of wodSFTP.NET or wodSSH.NET componenet.

In wodKeyManager you should load your key and convert it to XML string value using wodKeyManager ToXmlString Method. You should paste that value in wodFtpDLX.NET PrivateKey Property.

Let us know how it goes.


Regards,
Drazen

Re: wodFtpDLX.net and Private key

by tcorbett, Friday, November 02, 2007, 15:41 (6231 days ago) @ woddrazen

Hi Tim,


You should insert your private key to wodFtpDLX.NET PrivateKey Property in XML string value. To done that you can download wodSFTP.NET or wodSSH.NET and use wodKeyManager component.

wodKeyManager component is part of wodSFTP.NET or wodSSH.NET componenet.

In wodKeyManager you should load your key and convert it to XML string value using wodKeyManager ToXmlString Method. You should paste that value in wodFtpDLX.NET PrivateKey Property.

Let us know how it goes.


Regards,
Drazen

Hi Drazen,
I tried using the keymanager from wodSSH.net and I get the same error when I invoke the Load method.
'Failed to import key from file.'

What do you think?

Thanks,
TIm

Re: wodFtpDLX.net and Private key

by woddrazen, Friday, November 02, 2007, 15:46 (6231 days ago) @ tcorbett

Tim,


Can you maybe send us some sample key so we can test it on our side?

You can send it to techsupport@weonlydo.com


Drazen

Re: wodFtpDLX.net and Private key

by tcorbett, Friday, November 02, 2007, 15:57 (6231 days ago) @ woddrazen

Tim,


Can you maybe send us some sample key so we can test it on our side?

You can send it to techsupport@weonlydo.com


Drazen

I Sent the file as requested. Please keep me posted.
Thanks,
Tim