Re: C++ problem trying to use a certificate? Can - WeOnlyDo Discussion board

Re: C++ problem trying to use a certificate? Can (General questions)

by timster, Wednesday, January 11, 2006, 23:47 (6890 days ago) @ wodSupport

Hi,

I realized that I needed to catch the exception after my last post. [:doh:]

The error I'm getting is 30026 (Failed to load key or certificate. Password invalid?) if I just call
hr = pCert->Load ( c:\certs\client.cer );

or 30007 (Please set login, and password/certificate first.) if I also call
hr = pCert->LoadKey ( c:\certs\client.key );

Note that neither Load() or LoadKey() generates an error, and I'm using the WOD certificates & keys.

I'm using your SmallServer FTP server which has loaded the corresponding server certs.

Do I need to load both the cert and the priv key to successfully connect?

Thanks,
Tim


Complete thread: