X509Certificate.CreateFromCertFile - the specified network password is not correct

前端 未结 7 1157
你的背包
你的背包 2020-12-14 16:23

I have a .NET application that I want to use as a client to call an SSL SOAP web service. I have been supplied with a valid client certificate called foo.pfx. T

7条回答
  •  感情败类
    2020-12-14 16:56

    Turns out that I was trying to create a certificate from the .pfx instead of the .cer file.

    Lesson learned...

    • .cer files are an X.509 certificate in binary form. They are DER encoded.
    • .pfx files are container files. Also DER encoded. They contain not only certificates, but also private keys in encrypted form.

提交回复
热议问题