These are the things ive added to the /etc/grafana/grafana.ini
[server]
protocol = https
cert_file = /usr/sbin/server.crt
cert_key = /usr/sbin/server.key
when doing sysemctl status grafana-server i get the message
TLS handshake error from 127.0.0.1:48610: tls: first record does not look like a TLS handshake
That sounds very strange. Why is the port number changing? What do you have configured in your ini file? The default is 3000.
I tested a self-signed cert locally while answering this topic and it worked for me. The error message you are getting is the same as when you try to visit http instead of https. So if the port is wrong that might explain it.
I have generated a self-signed certificate using opeenssl just to check how https works with grafana. Answer for your question is No, I am not using a verified certificate.
Did you try using an absolute path instead of $GRAFANA_HOME?
By verifying, I mean verifying that the files are valid see my previous answers on this thread. As you didn’t follow the steps I outlined above (you would have a PEM file and not a crt file if you had), I’m not sure if you created them correctly.
What is 127.0.0.1:57415? Is that your auth server?
I followed this brazilian tutorial and I’m having the same problem as decribed on this topic. After running grafana, it keeps spamming “TLS handshake error from 127.0.0.1:48610: tls: first record does not look like a TLS handshake” on console, with different ports.
The app runs correctly on browser, even though that it gives the warning of insecure connection and “NET::ERR_CERT_AUTHORITY_INVALID”.
The problem might be that the certificate is self-signed and not trusted right?
I did followed your above mentioned steps correctly. By doing a simple i found that this error occurs when your client tries to connect to http while your server is https. So i have to change that into support https.