Solved

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

Posted on 2011-09-17
1
466 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now