Nomad service health check https with nomad service provider


I would like to perform some health checks over my running tasks.

all requests are redirect to https when they are reaching the container.

During the nomad health check when specify https as protocol ans skipTLScheck option true i get this message : nomad: Get "": http: server gave HTTP response to HTTPS client

If i switch the protocol from httpsto http i get this error : nomad: Get "": x509: cannot validate certificate for because it doesn't contain any IP SANs

Can you help me to understand how service check are working and if i can make this check working ?