SSL setup error

@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.