[Mono-list] PKCS#12 example

Sebastien Pouliot sebastien.pouliot at gmail.com
Tue Sep 20 09:52:36 EDT 2005


Hello Kim,

On Tue, 2005-20-09 at 14:13 +0200, Hellan.Kim KHE wrote:
> I need to create the following simple PKCS#12:
> 
> - Containing private key and certificate
> 
> - Containing 1 additional certificate
> 
> - With a "Friendly Name" specified
> 
> - Password protected
> 
>  
> 
> Does anyone have a small example for that, or can you direct to where
> I can find examples for Mono cryptograpy?

Mono's makecert tool supports creating PKCS#12 files.
http://svn.myrealbox.com/source/trunk/mcs/tools/security/makecert.cs

This should answers most of your questions - except for the friendly
name. For this you'll need to look at the source code...
http://svn.myrealbox.com/source/trunk/mcs/class/Mono.Security/Mono.Security.X509/PKCS12.cs

-- 
Sebastien Pouliot
email: sebastien at ximian.com
blog: http://pages.infinit.net/ctech/



More information about the Mono-list mailing list