Does anyone have any friendly tips on how to perform client authentication via an x509 certificate using HTTPClient 4.0.1?
Does anyone have any friendly tips on how to perform client authentication via an
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is some code to get you going. The
KeyStoreis the object that contains the client certificate. If the server is using a self-signed certificate or a certificate that isn’t signed by a CA as recognized by the JVM in the included cacerts file then you will need to use aTrustStore. Otherwise to use the default cacerts file, pass innulltoSSLSockeFactoryfor the truststore argument..