How can I use certificate authentication with HttpsURLConnection?
问题 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 slightest idea how I'm supposed to either find or use it and all I have to go on is C# sample code, which differs significantly with all the Java answers I've found about this. (for instance, the KeyStore needs some sort of password apparently?) This is the C# sample code I have System.Security.Cryptography.X509Certificates