1

When AWS application load balancers are configured to use HTTPS health checks, how are those verified? What subject name is matched against? What certificates are used?

Whenever I try to use HTTPS health checks, the ALB reports the health checks have failed, and I'm trying to get details about how the check is made.

2
  • 2
    Health checks only use IP addresses, not hostnames. They do not care, nor could they, if the cert matches the requested name.
    – EEAA
    May 2, 2017 at 4:27
  • @EEAA, that's what I guessed. ELBs can care, but only because it's possible to specify the cert. May 2, 2017 at 4:43

1 Answer 1

2

Have you read the documentation? The health checks are to an IP, but the documentation that I've read doesn't say anything about certificates. If you want to have health checks over https it would be safest to have a valid working https certificate on your origin.

If the status of a target is any value other than Healthy, the API returns a reason code and a description of the issue, and the console displays the same description in a tooltip. Note that reason codes that begin with Elb originate on the load balancer side and reason codes that begin with Target originate on the target side.

In short, it will tell you what the problem is if you look in the right place.

The health check is an http/s request to the path you specify. That URL has to return a 200 status code, though it can be configured to interpret another code as healthy - see the doc link above.

The HTTP codes to use when checking for a successful response from a target. You can specify values or ranges of values between 200 and 499. The default value is 200.

2
  • In my case the error is "Target.FailedHealthChecks". May 2, 2017 at 4:42
  • curl the failed health check target including path - eg curl -i 1.2.3.4/health . Edit your question to include the curl, the response (headers and status code). Check the logs on the server, say the web server access and error logs, post correlated logs from your curl. Please don't reply in a comment, it's too difficult to read.
    – Tim
    May 2, 2017 at 5:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .