Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369805 - [upstream] certificate authentication with custom keystore fails behind proxy
Summary: [upstream] certificate authentication with custom keystore fails behind proxy
Status: CLOSED MOVED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-26 09:16 EST by Steffen Pingel CLA
Modified: 2012-02-09 16:31 EST (History)
0 users

See Also:


Attachments
mylyn/context/zip (1.92 KB, application/octet-stream)
2012-01-26 18:22 EST, Steffen Pingel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Pingel CLA 2012-01-26 09:16:02 EST
If certificate authentication is used behind a proxy the keystore information is not available when the socket factory is created hence authentication fails. When HttpClient establishes the connection to the host PollingSslProtocolSocketFactory.createLayeredSocket() is invoked which does not receive an instance of HttpParams.

The work around is to configure the default keystore using system properties.
Comment 1 Steffen Pingel CLA 2012-01-26 09:31:33 EST
I have filed an upstream bug here to clarify if an HttpParams parameter could be added: https://issues.apache.org/jira/browse/HTTPCLIENT-1160. 

I'll set the default keystore in the test environment for now to make tests on the Eclipse.org Hudson pass.
Comment 2 Steffen Pingel CLA 2012-01-26 18:22:58 EST
Created attachment 210159 [details]
mylyn/context/zip
Comment 3 Steffen Pingel CLA 2012-02-09 16:31:07 EST
This will be fixed in HttpClient 4.2. We'll need to wait for the upstream fix in order to address this.
Comment 4 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn