且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何通过 HttpsURLConnection 使用证书身份验证?

更新时间:2022-06-15 08:43:40

原来是私钥问题,因为它被设置为不可导出.由于这意味着我只能从 Windows 商店中获取私钥,因此我解决并修复"了这个问题,并进行了大量的处理,以使必要的 jdk6 类正常工作,而不会对应用程序的其余部分产生太大影响.

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.