EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Key (.pfx) loading error 3330

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#6388
Posted: 05/26/2008 23:26:04
by Jolufu Sim (Standard support level)
Joined: 05/26/2008
Posts: 2

Hi,

I have been using SFTP Blackbox 5.0.107, and recently my certificate has expired, and my supplier provided me a new key with passphase, which I am able to load into the Microsoft Windows Public Key Management, but I failed to load it into TElSSHKey using LoadPrivateKey. It's a RSA (2048 Bits).

Please advice, thanks.
#6391
Posted: 05/27/2008 00:52:10
by Eugene Mayevski (Team)

You can't load the *certificate* using LoadPrivateKey. ElSSHKey class works with SSH keys, not with certificates and their private keys.
You can load the certificate to ElX509Certificate and then use ElSSHKey.Import() method to import that certificate.


Sincerely yours
Eugene Mayevski
#6392
Posted: 05/27/2008 03:56:53
by Jolufu Sim (Standard support level)
Joined: 05/26/2008
Posts: 2

I see... that clarifies... and it works, much thanks. I was wondering why I have to use a different method to load the certificate; and I have to amend the Sample SimpleSftpDemo to work for this certificate.

Reply

Statistics

Topic viewed 2720 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!