[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-cryptoapi
Subject:    Re: cerificate friendly name
From:       Laszlo Elteto <lelteto () RAINBOW ! COM>
Date:       2004-01-30 22:14:44
Message-ID: 5606C687D4C7D5119A5800508BF30DB409A044EA () irvexch1 ! rainbow ! com
[Download RAW message or body]

The DEFAULT for the friendly name MAY be the subject name. However, you can
simply change it, so your assumption about using them interchangeably is
incorrect.

Laszlo Elteto
Fellow Scientist
Rainbow Technologies, Inc.

-----Original Message-----
From: SUBSCRIBE CAPICOM rashmi [mailto:rashmivenkat80@HOTMAIL.COM]
Sent: Friday, January 30, 2004 11:46 AM
To: CryptoAPI@DISCUSS.MICROSOFT.COM
Subject: Re: cerificate friendly name

HI,
I was able to retrieve the certifciate using the "friendly name". I did not
know that friendly names are the same as the subject names. So if u know
the subject name, u can find the certificate with that subject name and
then get the container name and the provider for that cert. The function
that i used was
CertFindCertificateInStore(
      hSystemStore,
      MY_ENCODING_TYPE,           // Use X509_ASN_ENCODING.
      0,                          // No dwFlags needed.
      CERT_FIND_SUBJECT_STR,      // Find a certificate with a
                                  // subject that matches the string
                                  // in the next parameter.
      lpszCertSubject ,           // The Unicode string to be found
                                  // in a certificate's subject.
      NULL))                      // NULL for the first call to the
                                  // function. In all subsequent
                                  // calls, it is the last pointer
                                  // returned by the function.
{

This message and any material contained in any attachment may contain information \
which is the property of and which is confidential to Rainbow Technologies, Inc. This \
information is intended solely for the use of the individual or entity to whom it is \
addressed. If you are not the intended recipient, you are hereby notified that any \
disclosure, copying, distribution, or use of any of the information contained in this \
message is STRICTLY PROHIBITED. If you have received this message in error, please \
notify us immediately. Thank you.

----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.html
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:CryptoAPI-signoff-request@DISCUSS.MICROSOFT.COM


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic