Skip to content
Permalink
Browse files
[FIXED JENKINS-12629] Using jenkins-cli connecting to HTTPS port fail…
…s due to hostname mismatch in certificate.

- NoCheckTrustManager needed to implement X509TrustManager not just plain TrustManager

(cherry picked from commit 0ab7988)
  • Loading branch information
stephenc authored and olivergondza committed Jan 13, 2014
1 parent 25fbb2b commit 867a35523c2f6cf7a88e1ddb11c471652c7df5a9
Showing with 2 additions and 2 deletions.
  1. +2 −2 cli/src/main/java/hudson/cli/NoCheckTrustManager.java
@@ -1,13 +1,13 @@
package hudson.cli;

import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;

/**
* @author Kohsuke Kawaguchi
*/
public class NoCheckTrustManager implements TrustManager {
public class NoCheckTrustManager implements X509TrustManager {
public void checkClientTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException {
}

0 comments on commit 867a355

Please sign in to comment.