Click here to Skip to main content
12,946,164 members (53,432 online)
Click here to Skip to main content

Tagged as


67 bookmarked
Posted 15 Dec 2004

X.509 Certificates in .NET

, 16 Dec 2004 CPOL
The article show detail about X509 certificate and its formats with how you can implemnt in .NET
X509 Certificates
X509 Certificates.exe
X509 Certificates.pdb
X509 Certificates.exe
X509 Certificates.pdb
X509 Certificates.suo
X509 Certificates.vbproj.user

The CAPICOM Team is pleased to announce the general availability of CAPICOM This new version of CAPICOM contains the following new features:

    + CertificateStatus: A new Certificates collection property that allows 
      the caller to set or retrieve the set of additional certificates that 
      may be useful during certificate chain building.
    + CertificateStatus.CheckFlag now defaults to CAPICOM_CHECK_ONLINE_ALL
    + Store: 2 new methods and 2 new properties are available on the Store 
        + Delete: Allows the caller to delete non-system certificate stores. 
        + Close: Allows the caller to close a certificate store. This method 
          was added to address limitations in the JScript engine and is not 
          needed in other environments.
        + Name: Allows the caller to retrieve the name of a certificate store
        + Location: Allows the caller to retrieve the location 
          (CAPICOM_STORE_LOCATION) of a certificate store	
    + HashedData: Additional hash algorithms have been defined for SHA256, 
      SHA384 and SHA512. Note that these algorithms are not available on 
      Windows XP or below.

    + CHashData.vbs has been updated to use the new hash algorithms
    + Storesh.cs has been updated to use the new Delete method.

CAPICOM also addresses several bugs including:

    + Memory leak when calling SignedData.Signers.Items or 
      SignedData.Cetificates.Item in a loop
    + The Certficate status object does not return an error when the 
      Certificate Signing bit is not set in the Key Usage extension of a CA 
      certificate in the chain.
    + Changes made to a Certificate object retrieved from a collection 
      returned by a Find not persisted.	

Known Issues include:
    + Exporting keys to a PKCS12/PFX file fails on Windows 2000 and 
      Windows XP with keys that are marked non-exportable even if 
    + It is not possible to view the contents of a SignedData object if it is 
      signature invalid. As a work around users can use the Certificates 
      object to open the Pkcs7 and find the signer certificate.
    + The CVersion.vbs incorectly identifies the release as version 

CAPICOM is the best release of CAPICOM yet. The CAPICOM team 
recommends all users of previous releases of CAPICOM upgrade to the latest 
release. The package "CC2RINST.EXE" consists of the following files:

     |  |
     |  |- capicom.pdb
     |	|
     |     	|
     |     	|--capicom.dll
     |    	|--capicom.inf
           |   |
           |   |-workflow
           |   |
           |   |--storesh
           |   |--chainsh
           |   |--xmldsig
           |   |
           |   |--isapiCertPolicy
           |   |--store
           |   |
           |   |--Auxiliary.htm
           |   |--Certificates.htm
           |   |--EncryptedData.htm
           |   |--HashedData.htm
           |   |--SignData.htm
           |   |--Store.htm
           |   |
           |   |--bridgedisplay
           |   |--find
           |   |--privatekey
           |   |--signcode
           |   |--smime

To install CAPICOM extract "CAPICOM.DLL" from CAPICOM.CAB to your system32 
directory, then execute "regsvr32.exe CAPICOM.DLL". For more information on 
installing CAPICOM see the section "Getting Ready to Use CAPICOM" in the 
Platform SDK.

We believe one of our largest strengths is our user community. Microsoft 
technical communities provide opportunities to interact with Microsoft 
employees, experts, and your peers in order to share knowledge and news 
about CAPICOM and related technologies. Please post your questions or 
comments about CAPICOM on the newsgroup. 

The CAPICOM team

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Adnan Samuel
Software Developer (Senior)
Pakistan Pakistan
I am software engineer and working from last four years in the information technology field. I love to do intresting tasks. I love to see diffrent places and listening muzik.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170518.1 | Last Updated 16 Dec 2004
Article Copyright 2004 by Adnan Samuel
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid