ZURINET
asked on
How to generate a client type PKCS #12 Certificate and use it in C# Apps
Dear all
I have requirement to use a client certificate in code:
<<X509SecurityToken x509Token = new X509SecurityToken(x509Cert ificate);> >
x509Certificate being a client type PKCS #12 Certificate
Which i need to reference with the following code
x509Certifate.Import("info rming.p12" , PasswordCert, X509KeyStorageFlags.Defaul tKeySet);
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
I have requirement to use a client certificate in code:
<<X509SecurityToken x509Token = new X509SecurityToken(x509Cert
x509Certificate being a client type PKCS #12 Certificate
Which i need to reference with the following code
x509Certifate.Import("info
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.