Skip to content

Conversation

JesperTerkelsen
Copy link
Contributor

In some setups both client certificate TLS authentication and
username password authentication is needed.

Here is how you would set it up.

Create a sslContext, and add it along with credentials this way

HttpClientBuilder builder = HttpClientBuilder.create();
builder.setSslcontext(sslContext);
JenkinsHttpClient client = new JenkinsHttpClient(uri, builder, username, password);
JenkinsServer jenkins = new JenkinsServer(client);

@khmarbaise
Copy link
Member

Would you please so kind to add this information to the ReleaseNotes file.

@khmarbaise khmarbaise added this to the Release 0.3.8 milestone Aug 25, 2017
In some setups both client certificate TLS authentication and
username password authentication is needed.

Here is how you would set it up:
- Create a sslContext
- add it along with credentials to the new constructor

HttpClientBuilder builder = HttpClientBuilder.create();
builder.setSslcontext(sslContext);
JenkinsHttpClient client = new JenkinsHttpClient(uri, builder, username, password);
JenkinsServer jenkins = new JenkinsServer(client);
@JesperTerkelsen
Copy link
Contributor Author

Sure - i have updated the PR.

@khmarbaise khmarbaise merged commit 6673444 into jenkinsci:master Oct 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants