Deployed whoami service, but cant get response

Hi, I am new to traefik, and kubernetes. So I am not sure how to troubleshoot why whoami service don't respond to : "curl -I http://domainname.com" and "curl https://domainname.com"
The service is running, and everything looks fine in the Traefik dashboard.
The HTTP route looks fine,
For the HTTPS route it shows it got TLS, and redirects as it should - from HTTP to HTTPS.

I get this response in the terminal:
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

I hope someone can push me in the right direction. Or even better have a solution.

Hi @newkube,

As you are using a self-sign certificate that is not known by your client, that's why it will be considered as insecure.
As said in the curl documentation:

-k, --insecure
(TLS) By default, every SSL connection curl makes is verified to be secure. This option allows curl to proceed and operate even for server connections otherwise considered insecure.
The server connection is verified by making sure the server's certificate contains the right name and verifies successfully using the cert store.

In your case, it would be something like:
curl -k https://domainname.com