How can I use certificate authentication with HttpsURLConnection?

前端 未结 3 989
遥遥无期
遥遥无期 2020-12-13 21:39

I\'m trying to connect to an HTTPS URL, but I need to use client authentication with a certificate placed on my system by third party software.

I haven\'t the slight

3条回答
  •  無奈伤痛
    2020-12-13 22:19

    Turned out to be a Private Key issue since it was set as not exportable. As this meant I could only get the private key from the windows store, I caved and "Fixed" the issue with a lot of messing around to get the necessary jdk6 classes working without influencing the rest of the application too much.

提交回复
热议问题