CSP and how to use a public key from a certificate to cipher data



Hi,

Could someone tell me where I could find some sample code, to use the publix key of a certificate to encrypt data.

Thnaks
.



Relevant Pages

  • RE: Use USB-token client certificate
    ... The following is the sample code I used. ... // Find a certificate chain. ... > CertGetCertificateContextProperty points to the USB token's CSP? ...
    (microsoft.public.platformsdk.security)
  • Re: COM Calls to MS CA to Accept and Issue Certificates?
    ... Here are the pointers to the APIs supported in win2K, ... sample code in the MSDN for both C and VB. ... > Certificate Service to pass it a certificate request. ...
    (microsoft.public.platformsdk.security)
  • Re: How to exchange certificate ?
    ... "Richard Grossman" wrote in message ... >> The sample code which I referenced in an article does exactly the above ... > reference to certificate. ... > problem is to get the key from a certificate and not to generate a key. ...
    (microsoft.public.platformsdk.security)
  • Re: Public Key encryption - using cryptlib
    ... > Consider the following scenario: ... > I have my certificate generated, exported and stored in both .cer ... > and .pfx format.Now I want to encrypt data using the public key in the ...
    (sci.crypt)
  • Re: HTTPS error, pls help
    ... This is generally caused by the remote side sending a certificate ... that is unknown to the local side. ... > following sample code from SUN. ... > BufferedReader in = new BufferedReader( ...
    (comp.lang.java.help)