Re: Using certificates with WodCrypt - WeOnlyDo Discussion board

Re: Using certificates with WodCrypt (General questions)

by woddrazen, Tuesday, August 31, 2010, 12:31 (5199 days ago) @ Mark Lancaster

Hi Mark,


When you load certificate using wodCertificate you should load private key part from certificate. So you need to use LoadKey Method instead Load Method in wodCertificate.

Also for encryption you should use public key and for decryption you need to use private key inside SecretKey Property.

[code]eCert.LoadKey App.Path + \test.cer
oCrypt.SecretKey = eCert.PublicKey[/code]
Let us know how it goes.


Regards,
Drazen


Complete thread: