HearBeat monitor throwing IP SANS error

Hi All,

I am trying to implement hearbeat monitor for one of my application and I am getting below error.

I have done below configuration

- type: http

  # List or urls to query
  urls: ["https://x.x.x.x:9090"]
  # Configure task schedule
  schedule: '@every 10s'
  InsecureSkipVerify: true
  # Total test connection and data exchange timeout
  #timeout: 16s
  ssl:
  # Certificate Authorities
   certificate_authorities:
     - |
       -----BEGIN CERTIFICATE-----
       some base64 encoded value
-----END CERTIFICATE-----

Error
Get "https://x.x.x.x:9090": x509: cannot validate certificate for x.x.x.x because it doesn't contain any IP SANs

One of the reason can be cn name is different than the host name, but I am not whether this is the reason and also how to resolve it

It looks like you're pinging an IP instead of a domain. You'll need the URL to be the actual hostname of the service you're testing rather than an IP. TLS certificates only match domains not IPs unless you have specified in IP subject alternative name which you have not.

Is there a reason you're pinging the IP and not the hostname?

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.