Server calls via https, dont want certificate


I am fiddling around with aouth2 authorization.
To verify the token the token_url under [auth.generic_oauth] in config is called.
But it has to be https.
But grafana refuses to call this url because (log)

lvl=eror msg=login.OAuthLogin(NewTransportWithCode) logger=context userId=0 orgId=0 uname= er
ror=“Post x509: cannot validate certificate for because it doesn’t contain any IP SANs”

How can I overcome/workaround this problem?
a) how can I say, ignore this. Trust this server?
b) how do I configure certificate later? Where in the config?

Most what I found where regarding to grafana. But here grafana want to call another server.

Thanks Thomas

Overcome it by using a DNS name that matches the cert. Since you’re calling https, there needs to be a cert there, so just create and use the DNS that matches that cert.

1 Like


skip_verify = true
and it’s working yuppi!