Hi, I setup SSL in tyk.conf and tyk_analytics.conf. I can get the dashboard to run in https but the gateway is not working. There are a bunch of errors as below in the tyk-dashboard.stderr. I’m using the community version and the dashboard is 1.2.0.0. Any help is appreciated, thanks!
2016/08/03 03:51:01 http: TLS handshake error from 127.0.0.1:44942: tls: first record does not look like a TLS handshake
2016/08/03 03:51:02 http: TLS handshake error from [my IP]:43648: tls: first record does not look like a TLS handshake
2016/08/03 03:51:02 http: TLS handshake error from [my IP]:21918: tls: first record does not look like a TLS handshake
Hi, here’re more details. The above error only happens when both dashboard and gateway have SSL enabled.
If I only enable SSL on gateway, something different comes out.
Hi, we did some trial and error with the cert file and the gateway seems to work now. It would be nice if we can get the dashboard to run under SSL too but that’s not our requirement. If we also turn on SSL on the dashboard, we have those handshake errors in the log again.
@mching The issue is that you have enabled SSL in the dashboard, but your connection strings in the gateway are obviously still set to http:
You will need to tell your gateway that the dashboard is on HTTPS (and vice versa), all those connection strings need to be set to https in both the tyk.conf and tyk_analytics.conf
The bad certs will be just that, self-signed or invalids certs cause x509 errors.