Solved

How to generate a client type PKCS #12 Certificate and use it in C# Apps

Posted on 2011-09-17
1
468 Views
Last Modified: 2012-05-12
Dear all
I have requirement to use a client certificate in code:
<<X509SecurityToken x509Token = new X509SecurityToken(x509Certificate);>>

x509Certificate being a client type PKCS #12 Certificate

Which i need to reference with the following code
x509Certifate.Import("informing.p12", PasswordCert, X509KeyStorageFlags.DefaultKeySet);

my question is this, how can I create a client Certificate type PKCS #12
and reference it in my code?

I have tried something like
makecert -iv informing.key -ic informing.cer -eku 1.3.6.1.5.5.7.3.1 -n "CN=localhost" -p12 informing.p12 s3kr3t

Not sure if the right key is being generated .. I am getting some bad command errors.
I need to be able to generate the key and test that it existed before calling in in my Apps.

Thanks for your Help
0
Comment
Question by:ZURINET
1 Comment
 
LVL 13

Accepted Solution

by:
khairil earned 500 total points
ID: 36553756
Hi,

I not knowing how to create them directly, but using this library from ChilkatSoft makes a lot of these thing easier for me to code. If you have some bucks to spend then have a look on this, http://www.chilkatsoft.com/encryption-features.asp

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question