Wondering if anyone knows how to straight-out accept or bypass invalid SSL certificates with the Groovy HTTP Builder. I am working with a customer testbed but it looks like the software on the machines we're hitting has invalid SSL certificates associated with it.
I am getting the error "javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated"
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.5.0-RC2' )
import groovyx.net.http.*
import static groovyx.net.http.ContentType.*
import static groovyx.net.http.Method.*
http.auth.basic "userName", "password"
http.request(Method.GET, ContentType.BINARY) {
response.success = { resp ->
println resp
}
response.failure = { resp ->
println resp
}
}
Any help appreciated! Thank you
Regards,
Dave