Solved

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

Posted on 2011-09-17
1
469 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Rdp session freeze periodically in FORTIGATE ssl vpn 2 80
SSL CSR question 2 33
c# DateTime Format validation 4 70
Need to sort columns in DataGridView 4 41
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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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…

696 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