Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component


Index of Chilkat Blog Posts

October 27, 2005

Create Certificate?

UPDATE: Creating a Self-Signed X.509 Certificate in C#

Question:

We think about ordering the Chilkat Email .NET Component and use it for sending digitally signed and encypted mail. The examples work fine with our exiting digital certificates.

The question is: Is it possible to create new certificates based upon an exisiting one by code? Is it possible to create, sign, and manage X.509 Digital Certificates?

Can you provide such a feature in any way or give code examples in C# how to do this?

Answer:

The quick answer is that no, Chilkat does not provide an API to create certificates. It does provide the API to manage certs and cert stores, and to use the certificates for signing, encrypting, verifying signatures, and decrypting.

If you create a certificate yourself and not through a Certificate Authority (such as Thawte, Verisign, etc.) then your cert is not trusted outside your organization. This means you cannot use it for authentication with the external world. However, self-created certificates can still be useful for the purpose of testing data against tampering.

There is a makecert.exe program that comes with the .NET Developer Studio. One thought is to execute a shell command from within your program to make the cert. In C#, there is example code here: http://www.c-sharpcorner.com/Code/2002/July/ShellCommandsInCS.asp.
C++ or VB6 program could use the ShellExecute Win32 function.

I am not aware of a specific API to do certificate creation in Windows.


Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.