Even when using ignoreSSLIssues() a Spring Boot Actuator /health endpoint is not available since the service's route was switched from http to https.
I've used this pattern successfully on other SSL endpoints. Why does this one get Service Unavailable. The same URL is accessible in browser.
def url = "https://some.service.company.com"
def client = new HTTPBuilder(url)
client.ignoreSSLIssues()
def json = client.get(path: "/health")
println json
groovyx.net.http.HttpResponseException: Service Unavailable
For now, I had to just use Apache HTTP Client library because it handles the TLS Server Name Idendification (SNI) which perhaps Groovy HTTPBuilder does not or I couldn't find how to make it do so.
Here is how I inevitably (roughly) achieved the same thing over SSL with Apache HTTP Client: