How do I use an SSL client certificate with Apache HttpClient?
问题 In Python I was using requests like this: requests.put( webdavURL, auth=(tUsername, tPassword), data=webdavFpb, verify=False, cert=("/path/to/file.pem", "/path/to/file.key")) Easy as pie. Now I need to implement the same thing in Java using Apache HttpClient. How can I pass a client certificate when making requests using HttpClient? 回答1: I think the main difference is that in java, you usually put the key and the certificate to a key store and use it from there. Like you mention often people