-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Jenkins 2.59
http-request-plugin: latest(1.8.19)
Running on Java 8 Node
When we tried sending a request to one of the https servers got the following exception:
Wanted to ignore errors instead of setting up certificates and all. Please help. Thanks.
def response = httpRequest contentType: 'APPLICATION_JSON', ignoreSslErrors:true, httpMode: 'POST', requestBody: body, url: "https://abc.northamerica.net:443/" echo response.toString()
Error:
java.security.cert.CertificateException: Certificates does not conform to algorithm constraints at sun.security.ssl.AbstractTrustManagerWrapper.checkAlgorithmConstraints(SSLContextImpl.java:1117) at sun.security.ssl.AbstractTrustManagerWrapper.checkAdditionalTrust(SSLContextImpl.java:1043) at sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(SSLContextImpl.java:985) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1496) Caused: javax.net.ssl.SSLHandshakeException
Environment: Jenkins 2.59 http-request-plugin: latest(1.8.19)
[JENKINS-44727] Not ignoring javax.net.ssl.SSLHandshakeException(java.security.cert.CertificateException: Certificates does not conform to algorithm constraints)
Description |
Original:
When we tried sending a request to one of the https servers got the following exception: Wanted to ignore errors instead of setting up certificates and all. Please help. Thanks. {code:java} def response = httpRequest contentType: 'APPLICATION_JSON', ignoreSslErrors:true, httpMode: 'POST', requestBody: body, url: "https://abc.northamerica.net:443/" echo response.toString() {code} Error: {code:java} java.security.cert.CertificateException: Certificates does not conform to algorithm constraints at sun.security.ssl.AbstractTrustManagerWrapper.checkAlgorithmConstraints(SSLContextImpl.java:1117) at sun.security.ssl.AbstractTrustManagerWrapper.checkAdditionalTrust(SSLContextImpl.java:1043) at sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(SSLContextImpl.java:985) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1496) Caused: javax.net.ssl.SSLHandshakeException {code} |
New:
When we tried sending a request to one of the https servers got the following exception: Wanted to ignore errors instead of setting up certificates and all. Please help. Thanks. {code:java} def response = httpRequest contentType: 'APPLICATION_JSON', ignoreSslErrors:true, httpMode: 'POST', requestBody: body, url: "https://abc.northamerica.net:443/" echo response.toString() {code} Error: {code:java} java.security.cert.CertificateException: Certificates does not conform to algorithm constraints at sun.security.ssl.AbstractTrustManagerWrapper.checkAlgorithmConstraints(SSLContextImpl.java:1117) at sun.security.ssl.AbstractTrustManagerWrapper.checkAdditionalTrust(SSLContextImpl.java:1043) at sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(SSLContextImpl.java:985) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1496) Caused: javax.net.ssl.SSLHandshakeException {code} Environment: Jenkins 2.59 http-request-plugin: latest(1.8.19) |
Environment |
New:
Jenkins 2.59 http-request-plugin: latest(1.8.19) Running on Java 8 Node |
Assignee | Original: Janario Oliveira [ janario ] | New: Naresh Rayapati [ nrayapati ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Resolved [ 5 ] |
Here is the full exception, just in case;