News  [SoftwareSite

Latest News
Older News
RSS Feed
 
Complete Projects
Useful Classes
Top Downloads
Message Board
AllAPI.net
 
Send Comments
Software License
Mentalis.org Buttons
Donate
 
Forums -> Security Library Forum
 
HOWTO use p12 with SOAP ClientCertificates.Add()  
by Svoboda Jaroslav [jsvoboda at trask dot cz]
posted on 2004/02/25

Hi,

I have question, HOWTO use certificate from p12 or pem file with webservices using <wsproxy>.ClientCertificates.Add().

System.Security.Cryptography.X509Certificates.X509Certificate ClientCert = null;

Certificate cert = null;
cert = Certificate.CreateFromPemFile(certPath);
ClientCert = cert.ToX509();

This code works fine, but only if is certificate imported into windows certificate store.

Plaese help

Thanks

by Pieter Philippaerts [Pieter at mentalis dot org]
posted on 2004/03/06

During the conversion between a Mentalis.org certificate and a X509Certificate, the link between the certificate and the private key may get lost. To avoid this problem, your best option is to install the Mentalis.org certificates in a certificate store like you're already doing.

 

Copyright © 2002-2007, The Mentalis.org Team. All rights reserved.
This site is located at http://www.mentalis.org/
Send comments to the webmaster.