How to load a string in a certificate ? - WeOnlyDo Discussion board

How to load a string in a certificate ? (General questions)

by Bertrand, Wednesday, July 25, 2007, 18:05 (6331 days ago)

Hi weonlydo' mens !
I using SFTP component in VB.NET. that's work great !
However, I coming for a new problem.
Now, in my application, my private key is no more write on a file and I get the ppk on a string.
So, my question is simple : How can I use this sting to use the cert ?
I try :
ftp1 = New wodFtpDLXComLib.wodFtpDLXCom
cert = New WODCERTMNGLib.Certificate
cert.PrivateKey = ppk
And I get :
Failed to import private key.
Howverer, when I compare my file and my string, there is no difference !
Thanks for help !
Bertrand


Complete thread: