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 220.127.116.11.18.104.22.168.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