SSL Cretificate installation fail(solved)

Dear @Josh
We have use Tyk completed POC, use api key and Oauth2.0. we want to setup tyk dashboard and gateway are use SSL(https ).

First: I have add domain for hostname:
127.0.0.1 www.tyk.com
127.0.0.1 www.port1.com

Second: I used the following commands to generate the certificate:
openssl genrsa -out Tyk-Gateway.key 1024
openssl req -new -key Tyk-Gateway.key -out Tyk-server.csr
openssl x509 -req -days 365 -in Tyk-server.csr -signkey Tyk-Gateway.key -out Tyk-Gateway.crt

Thrid: Change the tyk.conf and tyk_analytics.conf for SSL configure:
the tyk.conf data as follow:
{
“listen_port”: 8080,
“node_secret”: “352d20ee67be67f6340b4c0605b044b7”,
“secret”: “352d20ee67be67f6340b4c0605b044b7”,
“template_path”: “/opt/tyk-gateway/templates”,
“use_db_app_configs”: true,
“db_app_conf_options”: {
“connection_string”: “https://www.tyk.com:443”,
“node_is_segmented”: false,
“tags”: []
},
“disable_dashboard_zeroconf”: false,
“app_path”: “/opt/tyk-gateway/apps”,
“middleware_path”: “/opt/tyk-gateway/middleware”,
“storage”: {
“type”: “redis”,
“host”: “localhost”,
“port”: 6379,
“username”: “”,
“password”: “”,
“database”: 0,
“optimisation_max_idle”: 2000,
“optimisation_max_active”: 4000
},
“enable_analytics”: true,
“analytics_config”: {
“type”: “mongo”,
“ignored_ips”: [],
“enable_detailed_recording”: true,
“enable_geo_ip”: false,
“geo_ip_db_path”: “”,
“normalise_urls”: {
“enabled”: true,
“normalise_uuids”: true,
“normalise_numbers”: true,
“custom_patterns”: []
}
},
“health_check”: {
“enable_health_checks”: true,
“health_check_value_timeouts”: 60
},
“optimisations_use_async_session_write”: true,
“allow_master_keys”: false,
“policies”: {
“policy_source”: “service”,
“policy_connection_string”: “https://www.tyk.com:443”,
“policy_record_name”: “policies”,
“allow_explicit_policy_id”: true
},
“hash_keys”: false,
“suppress_redis_signal_reload”: false,
“use_redis_log”: true,
“close_connections”: false,
“enable_non_transactional_rate_limiter”: true,
“enable_sentinel_rate_limiter”: false,
“enable_hashed_keys_listing”:true,
“experimental_process_org_off_thread”: false,
“local_session_cache”: {
“disable_cached_session_state”: false
},
“http_server_options”: {
“override_defaults”: true,
“read_timeout”: 0,
“write_timeout”: 0,
“use_ssl”: true,
“use_ssl_le”: false,
“ssl_insecure_skip_verify”: false,
“enable_websockets”: true,
“certificates”: [
{
“domain_name”: “*.www.tyk.com”,
“cert_file”: “/etc/pki/tls/tyk-Gateway.crt”,
“key_file”: “/etc/pki/tls/tyk-Gateway.key”
}
],
“ssl_certificates”: null,
“server_name”: “”,
“min_version”: 0,
“flush_interval”: 0,
“skip_url_cleaning”: false
},
“uptime_tests”: {
“disable”: false,
“config”: {
“enable_uptime_analytics”: true,
“failure_trigger_sample_size”: 2,
“time_wait”: 10,
“checker_pool_size”: 50,
“enable_uptime_analytics”: true
}
},
“hostname”: “www.tyk.com”,
“enable_custom_domains”: true,
“enable_jsvm”: true,
“oauth_redirect_uri_separator”: “;”,
“coprocess_options”: {
“enable_coprocess”: false,
“coprocess_grpc_server”: “”
},
“pid_file_location”: “./tyk-gateway.pid”,
“allow_insecure_configs”: true,
“public_key_path”: “”,
“close_idle_connections”: false,
“allow_remote_config”: false,
“enable_bundle_downloader”: true,
“bundle_base_url”: “”,
“global_session_lifetime”: 100,
“force_global_session_lifetime”: false,
“allow_remote_config”: true,
“legacy_enable_allowance_countdown”: false,
“max_idle_connections_per_host”: 100,
“reload_wait_time”: 0,
“proxy_ssl_insecure_skip_verify”: false,
“proxy_default_timeout”: 0,
“log_level”: “debug”,
“security”: {
“private_certificate_encoding_secret”: “”,
“control_api_use_mutual_tls”: false,
“certificates”: {
“apis”: null,
“upstream”: null,
“control_api”: null,
“dashboard_api”: null,
“mdcb_api”: null
}
}
}

The tyk_analytics.conf data as follow:
{
“listen_port”: 443,
“tyk_api_config”: {
“Host”: “https://localhost”,
“Port”: “8080”,
“Secret”: “352d20ee67be67f6340b4c0605b044b7”
},
“mongo_url”: “mongodb://127.0.0.1/tyk_analytics”,
“mongo_use_ssl”: false,
“mongo_ssl_insecure_skip_verify”: false,
“page_size”: 10,
“admin_secret”: “5b6a9a6b08fc771d8e65ac83”,
“shared_node_secret”: “352d20ee67be67f6340b4c0605b044b7”,
“redis_port”: 6379,
“redis_host”: “localhost”,
“redis_password”: “”,
“enable_cluster”: false,
“redis_use_ssl”: false,
“redis_ssl_insecure_skip_verify”: false,
“force_api_defaults”: false,
“notify_on_change”: true,
“license_key”: “xxxxxxxxxxxxxxxxxxxx”,
“redis_database”: 0,
“redis_hosts”: null,
“hash_keys”: true,
“email_backend”: {
“enable_email_notifications”: false,
“code”: “”,
“settings”: null,
“default_from_email”: “”,
“default_from_name”: “”,
“dashboard_hostname”: “”
},
“hide_listen_path”: false,
“sentry_code”: “”,
“sentry_js_code”: “”,
“use_sentry”: false,
“enable_master_keys”: false,
“enable_duplicate_slugs”: true,
“show_org_id”: true,
“host_config”: {
“enable_host_names”: false,
“disable_org_slug_prefix”: true,
“hostname”: “10.4.2.72”,
“override_hostname”: “www.tyk.com”,
“portal_domains”: {},
“portal_root_path”: “/portal”,
“generate_secure_paths”: true,
“secure_cookies”: true,
“use_strict_hostmatch”: false
},
“http_server_options”:{
“use_ssl”:true,
“certificates”:[
{
“key_file”:“/etc/pki/tls/tyk-Gateway.key”,
“cert_file”:“/etc/pki/tls/tyk-Gateway.crt”,
“domain_name”:“*.www.tyk.com”
}
]

},
“security”: {
“allow_admin_reset_password”: false,
“login_failure_username_limit”: 0,
“login_failure_ip_limit”: 0,
“login_failure_expiration”: 0,
“audit_log_path”: “/opt/tyk-dashboard/dashboard.log”
},
“ui”: {
“languages”: {
“Chinese”: “cn”,
“English”: “en”,
“French”: “fr”,
“Korean”: “ko”
},
“hide_help”: false,
“default_lang”: “en”,
“login_page”: {},
“nav”: {},
“uptime”: {},
“portal_section”: null,
“designer”: {},
“dont_show_admin_sockets”: false,
“dont_allow_license_management”: false,
“dont_allow_license_management_view”: false,
“cloud”: false
},
“home_dir”: “/opt/tyk-dashboard”,
“identity_broker”: {
“enabled”: false,
“host”: {
“connection_string”: “http://localhost:3010”,
“secret”: “test-secret”
}
},
“tagging_options”: {
“tag_all_apis_by_org”: false
},
“use_sharded_analytics”: false,
“enable_aggregate_lookups”: true,
“enable_analytics_cache”: false,
“aggregate_lookup_cutoff”: “01/07/2016”,
“maintenance_mode”: false,
“allow_explicit_policy_id”: false,
“private_key_path”: “”,
“node_schema_path”: “”,
“oauth_redirect_uri_separator”: “;”,
“statsd_connection_string”: “”,
“statsd_prefix”: “”,
“disable_parallel_sessions”: false,
“dashboard_session_lifetime”: 0,
“alternative_dashboard_url”: “”,
“sso_permission_defaults”: null,
“sso_default_group_id”: “”,
“sso_custom_login_url”: “”,
“sso_custom_portal_login_url”: “”,
“notifications_listen_port”: 5000,
“portal_session_lifetime”: 0,
“enable_delete_key_by_hash”: false
}

When I restart the tyk dashboard, it have appear error:
Started Tyk API Dashboard.
Dec 11 18:44:11 localhost systemd: Starting Tyk API Dashboard…
Dec 11 18:44:11 localhost tyk-analytics: time=“Dec 11 18:44:11” level=info msg=“Using /opt/tyk-dashboard/tyk_analytics.conf for configuration”
Dec 11 18:44:11 localhost tyk-analytics: time=“Dec 11 18:44:11” level=info msg=“connecting to MongoDB: [127.0.0.1]”
Dec 11 18:44:11 localhost tyk-analytics: time=“Dec 11 18:44:11” level=info msg=“mongo connection established”
Dec 11 18:44:11 localhost tyk-analytics: time=“Dec 11 18:44:11” level=info msg=“Creating new Redis connection pool”
Dec 11 18:44:11 localhost tyk-analytics: time=“Dec 11 18:44:11” level=info msg=“Creating new Redis connection pool”
Dec 11 18:44:11 localhost tyk-analytics: time=“Dec 11 18:44:11” level=info msg=“Creating new Redis connection pool”
Dec 11 18:44:11 localhost tyk-analytics: time=“Dec 11 18:44:11” level=info msg=“Creating new Redis connection pool”
Dec 11 18:44:11 localhost tyk-analytics: time=“Dec 11 18:44:11” level=info msg=“Adding available nodes…”
Dec 11 18:44:11 localhost tyk-analytics: time=“Dec 11 18:44:11” level=info msg=“Tyk Analytics Dashboard v1.7.0”
Dec 11 18:44:11 localhost tyk-analytics: time=“Dec 11 18:44:11” level=info msg=“Copyright Martin Buhr 2016”
Dec 11 18:44:11 localhost tyk-analytics: time=“Dec 11 18:44:11” level=info msg=“https://www.tyk.io
Dec 11 18:44:11 localhost tyk-analytics: time=“Dec 11 18:44:11” level=info msg=“Listening on port: 443”
Dec 11 18:44:11 localhost tyk-analytics: time=“Dec 11 18:44:11” level=info msg=“Registering nodes…”
Dec 11 18:44:11 localhost tyk-analytics: time=“Dec 11 18:44:11” level=info msg=“Adding available nodes…”
Dec 11 18:44:11 localhost tyk-analytics: time=“Dec 11 18:44:11” level=info msg=“Creating new Redis connection pool”
Dec 11 18:44:11 localhost tyk-analytics: time=“Dec 11 18:44:11” level=info msg=“Socket server started”
Dec 11 18:44:11 localhost tyk-analytics: time=“Dec 11 18:44:11” level=info msg=“–> Using SSL (https) for UI notifications” addr=“:5000”
Dec 11 18:44:11 localhost tyk-analytics: time=“Dec 11 18:44:11” level=info msg=“–> Using SSL (https) for dashboard and API”
Dec 11 18:44:11 localhost tyk-analytics: time=“Dec 11 18:44:11” level=panic msg=“Server creation failed! listen tcp :443: bind: permission denied
Dec 11 18:44:11 localhost tyk-analytics: panic: (*logrus.Entry) (0xc16b60,0xc420280730)
Dec 11 18:44:11 localhost tyk-analytics: goroutine 1 [running]:
Dec 11 18:44:11 localhost tyk-analytics: github.com/TykTechnologies/tyk-analytics/vendor/github.com/Sirupsen/logrus.Entry.log(0xc420082500, 0xc420434030, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc420280000, …)
Dec 11 18:44:11 localhost tyk-analytics: /src/github.com/TykTechnologies/tyk-analytics/vendor/github.com/Sirupsen/logrus/entry.go:124 +0x5eb
Dec 11 18:44:11 localhost tyk-analytics: github.com/TykTechnologies/tyk-analytics/vendor/github.com/Sirupsen/logrus.(*Entry).Panic(0xc420280000, 0xc42054dca0, 0x2, 0x2)
Dec 11 18:44:11 localhost tyk-analytics: /src/github.com/TykTechnologies/tyk-analytics/vendor/github.com/Sirupsen/logrus/entry.go:169 +0xa8
Dec 11 18:44:11 localhost tyk-analytics: github.com/TykTechnologies/tyk-analytics/vendor/github.com/Sirupsen/logrus.(*Logger).Panic(0xc420082500, 0xc42054dca0, 0x2, 0x2)
Dec 11 18:44:11 localhost tyk-analytics: /src/github.com/TykTechnologies/tyk-analytics/vendor/github.com/Sirupsen/logrus/logger.go:235 +0x6e
Dec 11 18:44:11 localhost tyk-analytics: main.main()
Dec 11 18:44:11 localhost tyk-analytics: /src/github.com/TykTechnologies/tyk-analytics/main.go:981 +0x728
Dec 11 18:44:11 localhost systemd: tyk-dashboard.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Dec 11 18:44:11 localhost systemd: Unit tyk-dashboard.service entered failed state.
Dec 11 18:44:11 localhost systemd: tyk-dashboard.service failed.
Dec 11 18:44:11 localhost systemd: tyk-dashboard.service holdoff time over, scheduling restart.

Where I have set up the error value for Tyk.conf and tyk_analytics.conf file? Can you provider the doc or example for set up Tyk SSL Cretificate?

Hi you already have something listening on port 443 or you dont have permission to use the port - you can still use the default port i.e. 3000 with the dashboard listening on TLS. Or, use something like netstat -tlnp to see what is using port 443 or ascertain if you have permission to use that port on your system.

Dear Josh,
Thank you for you reply. after i change to port to 3000, then import the Cretificate in Firefox brower.
when input the https://www.tyk.com:3000/
it have error: Your connection is not secure
whether I generate the Cretificate command have error?

openssl genrsa -out Tyk-Gateway.key 1024
openssl req -new -key Tyk-Gateway.key -out Tyk-server.csr
openssl x509 -req -days 365 -in Tyk-server.csr -signkey Tyk-Gateway.key -out Tyk-Gateway.crt

the log file have appear message:
msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 11 20:30:55 localhost tyk: time=“Dec 11 20:30:55” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 11 20:30:55 localhost tyk-analytics: 2018/12/11 20:30:55 http: TLS handshake error from 127.0.0.1:50046: remote error: tls: bad certificate
Dec 11 20:30:55 localhost tyk: time=“Dec 11 20:30:55” level=error msg=“Request failed with error Get https://www.tyk.com:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”

If the cert chain is not complete or you are using self signed you need to set "ssl_insecure_skip_verify": true in your config in http_server_options section of tyk_analytics.conf and tyk.conf

Dear @Josh Josh,
I have change the “ssl_insecure_skip_verify” value to true.
Generate new Cretificate, restart the Tyk services , then found other error:

=“Redis connection pools are ready after number of retires” currRetry=0
Dec 12 14:45:41 localhost tyk: time=“Dec 12 14:45:41” level=info msg=“Redis connection pools are ready”
Dec 12 14:45:41 localhost tyk: time=“Dec 12 14:45:41” level=info msg=“–> Using SSL (https)”
Dec 12 14:45:41 localhost tyk: time=“Dec 12 14:45:41” level=info msg=“Setting up Server”
Dec 12 14:45:41 localhost tyk: time=“Dec 12 14:45:41” level=info msg=“Registering node.”
Dec 12 14:45:41 localhost tyk: time=“Dec 12 14:45:41” level=error msg=“Request failed with error Get https://www.tyk.com:3000/register/node: dial tcp 127.0.0.1:3000: connect: connection refused; retrying in 5s"
Dec 12 14:45:42 localhost tyk: time=“Dec 12 14:45:42” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
msg=“Adding available nodes…”
Dec 12 14:45:51 localhost tyk-analytics: time=“Dec 12 14:45:51” level=info msg=“Tyk Analytics Dashboard v1.7.0”
Dec 12 14:45:51 localhost tyk-analytics: time=“Dec 12 14:45:51” level=info msg=“Copyright Martin Buhr 2016”
Dec 12 14:45:51 localhost tyk-analytics: time=“Dec 12 14:45:51” level=info msg=“https://www.tyk.io
Dec 12 14:45:51 localhost tyk-analytics: time=“Dec 12 14:45:51” level=info msg=“Listening on port: 3000”
Dec 12 14:45:51 localhost tyk-analytics: time=“Dec 12 14:45:51” level=info msg=“Registering nodes…”
Dec 12 14:45:51 localhost tyk-analytics: time=“Dec 12 14:45:51” level=info msg=“Creating new Redis connection pool”
Dec 12 14:45:51 localhost tyk-analytics: time=“Dec 12 14:45:51” level=info msg=“Adding available nodes…”
Dec 12 14:45:51 localhost tyk-analytics: time=“Dec 12 14:45:51” level=info msg=“Socket server started”
Dec 12 14:45:51 localhost tyk-analytics: time=“Dec 12 14:45:51” level=info msg=”–> Using SSL (https) for UI notifications" addr=“:5000”
Dec 12 14:45:51 localhost tyk-analytics: time=“Dec 12 14:45:51” level=info msg=“–> Using SSL (https) for dashboard and API”
Dec 12 14:45:51 localhost tyk-analytics: time=“Dec 12 14:45:51” level=fatal msg=“Server error: loadkeys: open /opt/Tykservice.crt: permission denied
Dec 12 14:45:51 localhost systemd: tyk-dashboard.service: main process exited, code=exited, status=1/FAILURE
Dec 12 14:45:51 localhost systemd: Unit tyk-dashboard.service entered failed state.
Dec 12 14:45:51 localhost systemd: tyk-dashboard.service failed.
Dec 12 14:45:51 localhost systemd: tyk-dashboard.service holdoff time over, scheduling restart.
Dec 12 14:45:51 localhost systemd: Started Tyk API Dashboard.
Dec 12 14:45:51 localhost systemd: Starting Tyk API Dashboard…
Dec 12 14:45:51 localhost tyk-analytics: time=“Dec 12 14:45:51” level=info msg=“Using /opt/tyk-dashboard/tyk_analytics.conf for configuration”
Dec 12 14:45:51 localhost tyk-analytics: time=“Dec 12 14:45:51” level=info msg=“connecting to MongoDB: [127.0.0.1]”
Dec 12 14:45:51 localhost tyk-analytics: time=“Dec 12 14:45:51” level=info msg=“mongo connection established”
Dec 12 14:45:51 localhost tyk-analytics: time=“Dec 12 14:45:51” level=info msg=“Creating new Redis connection pool”
Dec 12 14:45:51 localhost tyk-analytics: time=“Dec 12 14:45:51” level=info msg=“Creating new Redis connection pool”

Can you give me some suggest to solve these problem?

Dear @Josh Josh,
other question is that:
I delete the domain for https url, use https://localhost:3000/ for the dashboard endpoint.
and add exception :https://localhost in the browser Certificate manager.
then can view the API data and create api successful, but create keys fail, can’t save to db.

the Tyk_analytic.conf data as follow:
{
“listen_port”: 3000,
“tyk_api_config”: {
“Host”: “https://localhost”,
“Port”: “8080”,
“Secret”: “352d20ee67be67f6340b4c0605b044b7”
},
“mongo_url”: “mongodb://127.0.0.1/tyk_analytics”,
“mongo_use_ssl”: false,
“mongo_ssl_insecure_skip_verify”: false,
“page_size”: 10,
“admin_secret”: “5b6a9a6b08fc771d8e65ac83”,
“shared_node_secret”: “352d20ee67be67f6340b4c0605b044b7”,
“redis_port”: 6379,
** “redis_host”: “localhost”,**
“redis_password”: “”,
“enable_cluster”: false,
“redis_use_ssl”: false,
“redis_ssl_insecure_skip_verify”: true,
“force_api_defaults”: false,
“notify_on_change”: true,
“license_key”: “xxxxxxxx”,
“redis_database”: 0,
“redis_hosts”: null,
“hash_keys”: true,
“email_backend”: {
“enable_email_notifications”: false,
“code”: “”,
“settings”: null,
“default_from_email”: “”,
“default_from_name”: “”,
“dashboard_hostname”: “”
},
“hide_listen_path”: false,
“sentry_code”: “”,
“sentry_js_code”: “”,
“use_sentry”: false,
“enable_master_keys”: false,
“enable_duplicate_slugs”: true,
“show_org_id”: true,
“host_config”: {
“enable_host_names”: false,
“disable_org_slug_prefix”: true,
“hostname”: “”,
“override_hostname”: “localhost”,
“portal_domains”: {},
“portal_root_path”: “/portal”,
“generate_secure_paths”: true,
“secure_cookies”: true,
“use_strict_hostmatch”: false
},
“http_server_options”:{
“use_ssl”:true,
“ssl_insecure_skip_verify”: true,
“certificates”:[
{
“key_file”:“/opt/Tykservice.key”,
“cert_file”:“/opt/Tykservice.crt”,
“domain_name”:“localhost”
}
]

},
“security”: {
“allow_admin_reset_password”: false,
“login_failure_username_limit”: 0,
“login_failure_ip_limit”: 0,
“login_failure_expiration”: 0,
“audit_log_path”: “/opt/tyk-dashboard/dashboard.log”
},
“ui”: {
“languages”: {
“Chinese”: “cn”,
“English”: “en”,
“French”: “fr”,
“Korean”: “ko”
},
“hide_help”: false,
“default_lang”: “en”,
“login_page”: {},
“nav”: {},
“uptime”: {},
“portal_section”: null,
“designer”: {},
“dont_show_admin_sockets”: false,
“dont_allow_license_management”: false,
“dont_allow_license_management_view”: false,
“cloud”: false
},
“home_dir”: “/opt/tyk-dashboard”,
“identity_broker”: {
“enabled”: false,
“host”: {
“connection_string”: “http://localhost:3010”,
“secret”: “test-secret”
}
},
“tagging_options”: {
“tag_all_apis_by_org”: false
},
“use_sharded_analytics”: false,
“enable_aggregate_lookups”: true,
“enable_analytics_cache”: false,
“aggregate_lookup_cutoff”: “01/07/2016”,
“maintenance_mode”: false,
“allow_explicit_policy_id”: false,
“private_key_path”: “”,
“node_schema_path”: “”,
“oauth_redirect_uri_separator”: “;”,
“statsd_connection_string”: “”,
“statsd_prefix”: “”,
“disable_parallel_sessions”: false,
“dashboard_session_lifetime”: 0,
“alternative_dashboard_url”: “”,
“sso_permission_defaults”: null,
“sso_default_group_id”: “”,
“sso_custom_login_url”: “”,
“sso_custom_portal_login_url”: “”,
“notifications_listen_port”: 5000,
“portal_session_lifetime”: 0,
“enable_delete_key_by_hash”: false
}

the tyk.conf data as follow:
{
“listen_port”: 8080,
“node_secret”: “352d20ee67be67f6340b4c0605b044b7”,
“secret”: “352d20ee67be67f6340b4c0605b044b7”,
“template_path”: “/opt/tyk-gateway/templates”,
“use_db_app_configs”: true,
“db_app_conf_options”: {
“connection_string”: “https://localhost:3000”,
“node_is_segmented”: false,
“tags”: []
},
“disable_dashboard_zeroconf”: false,
“app_path”: “/opt/tyk-gateway/apps”,
“middleware_path”: “/opt/tyk-gateway/middleware”,
“storage”: {
“type”: “redis”,
“host”: “localhost”,
“port”: 6379,
“username”: “”,
“password”: “”,
“database”: 0,
“optimisation_max_idle”: 2000,
“optimisation_max_active”: 4000
},
“enable_analytics”: true,
“analytics_config”: {
“type”: “mongo”,
“ignored_ips”: [],
“enable_detailed_recording”: true,
“enable_geo_ip”: false,
“geo_ip_db_path”: “”,
“normalise_urls”: {
“enabled”: true,
“normalise_uuids”: true,
“normalise_numbers”: true,
“custom_patterns”: []
}
},
“health_check”: {
“enable_health_checks”: true,
“health_check_value_timeouts”: 60
},
“optimisations_use_async_session_write”: true,
“allow_master_keys”: false,
“policies”: {
“policy_source”: “service”,
“policy_connection_string”: “https://localhost:3000”,
“policy_record_name”: “policies”,
“allow_explicit_policy_id”: true
},
“hash_keys”: false,
“suppress_redis_signal_reload”: false,
“use_redis_log”: true,
“close_connections”: false,
“enable_non_transactional_rate_limiter”: true,
“enable_sentinel_rate_limiter”: false,
“enable_hashed_keys_listing”:true,
“experimental_process_org_off_thread”: false,
“local_session_cache”: {
“disable_cached_session_state”: false
},
“http_server_options”: {
“override_defaults”: true,
“read_timeout”: 0,
“write_timeout”: 0,
“use_ssl”: true,
“use_ssl_le”: false,
“ssl_insecure_skip_verify”: true,
“enable_websockets”: true,
“certificates”: [
{
“domain_name”: “localhost”,
“cert_file”: “/opt/Tykservice.crt”,
“key_file”: “/opt/Tykservice.key”
}
],
“ssl_certificates”: null,
“server_name”: “”,
“min_version”: 0,
“flush_interval”: 0,
“skip_url_cleaning”: false
},
“uptime_tests”: {
“disable”: false,
“config”: {
“enable_uptime_analytics”: true,
“failure_trigger_sample_size”: 2,
“time_wait”: 10,
“checker_pool_size”: 50,
“enable_uptime_analytics”: true
}
},
“hostname”: “localhost”,
“enable_custom_domains”: true,
“enable_jsvm”: true,
“oauth_redirect_uri_separator”: “;”,
“coprocess_options”: {
“enable_coprocess”: false,
“coprocess_grpc_server”: “”
},
“pid_file_location”: “./tyk-gateway.pid”,
“allow_insecure_configs”: true,
“public_key_path”: “”,
“close_idle_connections”: false,
“allow_remote_config”: false,
“enable_bundle_downloader”: true,
“bundle_base_url”: “”,
“global_session_lifetime”: 100,
“force_global_session_lifetime”: false,
“allow_remote_config”: true,
“legacy_enable_allowance_countdown”: false,
“max_idle_connections_per_host”: 100,
“reload_wait_time”: 0,
“proxy_ssl_insecure_skip_verify”: true,
“proxy_default_timeout”: 0,
“log_level”: “debug”,
“security”: {
“private_certificate_encoding_secret”: “”,
“control_api_use_mutual_tls”: false,
“certificates”: {
“apis”: null,
“upstream”: null,
“control_api”: null,
“dashboard_api”: null,
“mdcb_api”: null
}
}
}

Where I set up the incorrect value for redis db?

Can you share the logs for that step?

@Josh ,the logs as follow:
Dec 12 19:39:04 localhost systemd: Started Tyk API Dashboard.
Dec 12 19:39:04 localhost systemd: Starting Tyk API Dashboard…
Dec 12 19:39:04 localhost tyk-analytics: time=“Dec 12 19:39:04” level=info msg=“Using /opt/tyk-dashboard/tyk_analytics.conf for configuration”
Dec 12 19:39:04 localhost tyk-analytics: time=“Dec 12 19:39:04” level=info msg=“connecting to MongoDB: [127.0.0.1]”
Dec 12 19:39:04 localhost tyk-analytics: time=“Dec 12 19:39:04” level=info msg=“mongo connection established”
Dec 12 19:39:04 localhost tyk-analytics: time=“Dec 12 19:39:04” level=info msg=“Creating new Redis connection pool”
Dec 12 19:39:04 localhost tyk-analytics: time=“Dec 12 19:39:04” level=info msg=“Creating new Redis connection pool”
Dec 12 19:39:04 localhost tyk-analytics: time=“Dec 12 19:39:04” level=info msg=“Creating new Redis connection pool”
Dec 12 19:39:04 localhost tyk-analytics: time=“Dec 12 19:39:04” level=info msg=“Creating new Redis connection pool”
Dec 12 19:39:04 localhost tyk-analytics: time=“Dec 12 19:39:04” level=info msg=“Adding available nodes…”
Dec 12 19:39:04 localhost tyk-analytics: time=“Dec 12 19:39:04” level=info msg=“Tyk Analytics Dashboard v1.7.0”
Dec 12 19:39:04 localhost tyk-analytics: time=“Dec 12 19:39:04” level=info msg=“Copyright Martin Buhr 2016”
Dec 12 19:39:04 localhost tyk-analytics: time=“Dec 12 19:39:04” level=info msg=“https://www.tyk.io
Dec 12 19:39:04 localhost tyk-analytics: time=“Dec 12 19:39:04” level=info msg=“Listening on port: 3000”
Dec 12 19:39:04 localhost tyk-analytics: time=“Dec 12 19:39:04” level=info msg=“Registering nodes…”
Dec 12 19:39:04 localhost tyk-analytics: time=“Dec 12 19:39:04” level=info msg=“Creating new Redis connection pool”
Dec 12 19:39:04 localhost tyk-analytics: time=“Dec 12 19:39:04” level=info msg=“Adding available nodes…”
Dec 12 19:39:04 localhost tyk-analytics: time=“Dec 12 19:39:04” level=info msg=“Socket server started”
Dec 12 19:39:04 localhost tyk-analytics: time=“Dec 12 19:39:04” level=info msg=“–> Using SSL (https) for UI notifications” addr=“:5000”
Dec 12 19:39:04 localhost tyk-analytics: time=“Dec 12 19:39:04” level=info msg=“–> Using SSL (https) for dashboard and API”
Dec 12 19:39:04 localhost tyk-analytics: time=“Dec 12 19:39:04” level=info msg=“Starting zeroconf heartbeat”
Dec 12 19:39:04 localhost tyk-analytics: time=“Dec 12 19:39:04” level=info msg=“Starting notification handler for gateway cluster”
Dec 12 19:39:04 localhost tyk-analytics: time=“Dec 12 19:39:04” level=info msg=“Loading routes…”
Dec 12 19:39:14 localhost systemd: Started Tyk Pump to move analytics data from Redis to any supported back end.
Dec 12 19:39:14 localhost systemd: Starting Tyk Pump to move analytics data from Redis to any supported back end…
Dec 12 19:39:14 localhost tyk-pump: time=“Dec 12 19:39:14” level=info msg=“## Tyk Analytics Pump, v0.5.3 ##”
Dec 12 19:39:14 localhost tyk-pump: time=“Dec 12 19:39:14” level=info msg=“-- No max batch size set, defaulting to 10MB”
Dec 12 19:39:14 localhost tyk-pump: time=“Dec 12 19:39:14” level=info msg=“-- No max document size set, defaulting to 10MB”
Dec 12 19:39:14 localhost tyk-pump: time=“Dec 12 19:39:14” level=info msg=“Init Pump: MongoDB Pump”
Dec 12 19:39:14 localhost tyk-pump: time=“Dec 12 19:39:14” level=info msg=“Init Pump: MongoDB Aggregate Pump”
Dec 12 19:39:14 localhost tyk-pump: time=“Dec 12 19:39:14” level=info msg=“-- No max batch size set, defaulting to 10MB”
Dec 12 19:39:14 localhost tyk-pump: time=“Dec 12 19:39:14” level=info msg=“-- No max document size set, defaulting to 10MB”
Dec 12 19:39:14 localhost tyk-pump: time=“Dec 12 19:39:14” level=info msg=“Init Uptime Pump: MongoDB Pump”
Dec 12 19:39:14 localhost tyk-pump: time=“Dec 12 19:39:14” level=info msg=“Starting purge loop @10(s)”
Dec 12 19:39:23 localhost systemd: Started Tyk API Gateway.
Dec 12 19:39:23 localhost systemd: Starting Tyk API Gateway…
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“Setting up analytics DB connection”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“Connecting to redis cluster”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“Creating new Redis connection pool”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=info msg=“Connection dropped, reconnecting…”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“Analytics pool workers number” ps=50
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“Analytics total buffer (channel) size” recordsBufferSize=1000
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“Storage Engine already initialised…”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“[STORE] Getting WAS: PollerActiveInstanceID”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“[STORE] Getting: host-checker:PollerActiveInstanceID”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“Analytics pool worker buffer size” workerBufferSize=20
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“Error trying to get value:redigo: nil returned”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“No Primary instance found, assuming control”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“[STORE] SET Raw key is: PollerActiveInstanceID”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“[STORE] Setting key: host-checker:PollerActiveInstanceID”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=info msg=“Starting Poller”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“—> Initialising checker”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“[HOST CHECKER] Config:TriggerLimit: 2”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“[HOST CHECKER] Config:Timeout: ~10”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“[HOST CHECKER] Config:WorkerPool: 50”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“[HOST CHECKER] Init complete”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“—> Starting checker”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“[HOST CHECKER] Starting…”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“[HOST CHECKER] Check loop started…”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“[HOST CHECKER] Host reporter started…”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“—> Checker started.”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“Notifier will not work in hybrid mode”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“Storage Engine already initialised…”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=info msg=“Setting up analytics normaliser”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“Redis log hook active”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=info msg=“PIDFile location set to: ./tyk-gateway.pid”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“Initialising default org store”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“Storage Engine already initialised…”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“Storage Engine already initialised…”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=info msg=“Control API hostname set: localhost”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=info msg=“Initialising Tyk REST API Endpoints”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“Loaded API Endpoints”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=warning msg=“File descriptor limit 1024 too low for production use. Min 80000 recommended.\n\tThis could have a significant negative impact on performance.\n\tPlease refer to //tyk.io/docs/planning-for-production/ for further guidance.”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“Storage Engine already initialised…”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“[STORE] SET Raw key is: redis-test-863a7628-cc09-4a88-a763-2c5e539a35d6”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“[STORE] Setting key: redis-test-863a7628-cc09-4a88-a763-2c5e539a35d6”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“Storage Engine already initialised…”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“[STORE] Getting WAS: redis-test-863a7628-cc09-4a88-a763-2c5e539a35d6”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=debug msg=“[STORE] Getting: redis-test-863a7628-cc09-4a88-a763-2c5e539a35d6”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=info msg=“Redis connection pools are ready after number of retires” currRetry=0
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=info msg=“Redis connection pools are ready”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=info msg=“–> Using SSL (https)”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=info msg=“Setting up Server”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=info msg=“Registering node.”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 12 19:39:24 localhost tyk-analytics: 2018/12/12 19:39:24 http: TLS handshake error from [::1]:44212: remote error: tls: bad certificate
Dec 12 19:39:24 localhost tyk-pump: time=“Dec 12 19:39:24” level=warning msg=“Connection dropped, connecting…”
Dec 12 19:39:24 localhost tyk-pump: time=“Dec 12 19:39:24” level=warning msg=“Connection dropped, connecting…”
Dec 12 19:39:24 localhost tyk: time=“Dec 12 19:39:24” level=warning msg=“Insecure configuration detected (allowing)!”
Dec 12 19:39:25 localhost tyk: time=“Dec 12 19:39:25” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:26 localhost tyk: time=“Dec 12 19:39:26” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:27 localhost tyk: time=“Dec 12 19:39:27” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:28 localhost tyk: time=“Dec 12 19:39:28” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:29 localhost tyk: time=“Dec 12 19:39:29” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:29 localhost tyk-analytics: 2018/12/12 19:39:29 http: TLS handshake error from [::1]:44218: remote error: tls: bad certificate
Dec 12 19:39:29 localhost tyk: time=“Dec 12 19:39:29” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 12 19:39:30 localhost tyk: time=“Dec 12 19:39:30” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:31 localhost tyk: time=“Dec 12 19:39:31” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:32 localhost tyk: time=“Dec 12 19:39:32” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:33 localhost tyk: time=“Dec 12 19:39:33” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:34 localhost tyk: time=“Dec 12 19:39:34” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:34 localhost tyk: time=“Dec 12 19:39:34” level=debug msg=“[STORE] Getting WAS: PollerActiveInstanceID”
Dec 12 19:39:34 localhost tyk: time=“Dec 12 19:39:34” level=debug msg=“[STORE] Getting: host-checker:PollerActiveInstanceID”
Dec 12 19:39:34 localhost tyk: time=“Dec 12 19:39:34” level=debug msg=“Primary instance set, I am master”
Dec 12 19:39:34 localhost tyk: time=“Dec 12 19:39:34” level=debug msg=“[STORE] SET Raw key is: PollerActiveInstanceID”
Dec 12 19:39:34 localhost tyk: time=“Dec 12 19:39:34” level=debug msg=“[STORE] Setting key: host-checker:PollerActiveInstanceID”
Dec 12 19:39:34 localhost tyk: time=“Dec 12 19:39:34” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 12 19:39:34 localhost tyk-analytics: 2018/12/12 19:39:34 http: TLS handshake error from [::1]:44220: remote error: tls: bad certificate
Dec 12 19:39:35 localhost tyk: time=“Dec 12 19:39:35” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:36 localhost tyk: time=“Dec 12 19:39:36” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:37 localhost tyk: time=“Dec 12 19:39:37” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:38 localhost tyk: time=“Dec 12 19:39:38” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:39 localhost tyk: time=“Dec 12 19:39:39” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:39 localhost tyk-analytics: 2018/12/12 19:39:39 http: TLS handshake error from [::1]:44222: remote error: tls: bad certificate
Dec 12 19:39:39 localhost tyk: time=“Dec 12 19:39:39” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 12 19:39:40 localhost tyk: time=“Dec 12 19:39:40” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:41 localhost tyk: time=“Dec 12 19:39:41” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:42 localhost tyk: time=“Dec 12 19:39:42” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:43 localhost tyk: time=“Dec 12 19:39:43” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:44 localhost tyk: time=“Dec 12 19:39:44” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:44 localhost tyk: time=“Dec 12 19:39:44” level=debug msg=“[STORE] Getting WAS: PollerActiveInstanceID”
Dec 12 19:39:44 localhost tyk: time=“Dec 12 19:39:44” level=debug msg=“[STORE] Getting: host-checker:PollerActiveInstanceID”
Dec 12 19:39:44 localhost tyk: time=“Dec 12 19:39:44” level=debug msg=“Primary instance set, I am master”
Dec 12 19:39:44 localhost tyk: time=“Dec 12 19:39:44” level=debug msg=“[STORE] SET Raw key is: PollerActiveInstanceID”
Dec 12 19:39:44 localhost tyk: time=“Dec 12 19:39:44” level=debug msg=“[STORE] Setting key: host-checker:PollerActiveInstanceID”
Dec 12 19:39:44 localhost tyk-analytics: 2018/12/12 19:39:44 http: TLS handshake error from [::1]:44224: remote error: tls: bad certificate
Dec 12 19:39:44 localhost tyk: time=“Dec 12 19:39:44” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 12 19:39:45 localhost tyk: time=“Dec 12 19:39:45” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:46 localhost tyk: time=“Dec 12 19:39:46” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:47 localhost tyk: time=“Dec 12 19:39:47” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:48 localhost tyk: time=“Dec 12 19:39:48” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:49 localhost tyk: time=“Dec 12 19:39:49” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:49 localhost tyk-analytics: 2018/12/12 19:39:49 http: TLS handshake error from [::1]:44226: remote error: tls: bad certificate
Dec 12 19:39:49 localhost tyk: time=“Dec 12 19:39:49” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 12 19:39:50 localhost tyk: time=“Dec 12 19:39:50” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:51 localhost tyk: time=“Dec 12 19:39:51” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:52 localhost tyk: time=“Dec 12 19:39:52” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:53 localhost tyk: time=“Dec 12 19:39:53” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:54 localhost tyk: time=“Dec 12 19:39:54” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:54 localhost tyk: time=“Dec 12 19:39:54” level=debug msg=“[STORE] Getting WAS: PollerActiveInstanceID”
Dec 12 19:39:54 localhost tyk: time=“Dec 12 19:39:54” level=debug msg=“[STORE] Getting: host-checker:PollerActiveInstanceID”
Dec 12 19:39:54 localhost tyk: time=“Dec 12 19:39:54” level=debug msg=“Primary instance set, I am master”
Dec 12 19:39:54 localhost tyk: time=“Dec 12 19:39:54” level=debug msg=“[STORE] SET Raw key is: PollerActiveInstanceID”
Dec 12 19:39:54 localhost tyk: time=“Dec 12 19:39:54” level=debug msg=“[STORE] Setting key: host-checker:PollerActiveInstanceID”
Dec 12 19:39:54 localhost tyk-analytics: 2018/12/12 19:39:54 http: TLS handshake error from [::1]:44228: remote error: tls: bad certificate
Dec 12 19:39:54 localhost tyk: time=“Dec 12 19:39:54” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 12 19:39:55 localhost tyk: time=“Dec 12 19:39:55” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:56 localhost tyk: time=“Dec 12 19:39:56” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 12 19:39:57 localhost tyk: time=“Dec 12 19:39:57” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”

Dear @Josh
After I create new api(name https-test-ap3), update api definition, then create key . these step, the log as follow:

Dec 13 08:38:45 localhost tyk: time=“Dec 13 08:38:45” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:38:46 localhost tyk: time=“Dec 13 08:38:46” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:38:46 localhost tyk: time=“Dec 13 08:38:46” level=info msg=“Reloading endpoints”
Dec 13 08:38:46 localhost tyk: time=“Dec 13 08:38:46” level=info msg=“Reload queued”
Dec 13 08:38:46 localhost tyk: time=“Dec 13 08:38:46” level=info msg=“reload: initiating”
Dec 13 08:38:46 localhost tyk: time=“Dec 13 08:38:46” level=debug msg=“Default JSVM timeout used: 5s”
Dec 13 08:38:46 localhost tyk: time=“Dec 13 08:38:46” level=info msg=“Loading policies”
Dec 13 08:38:46 localhost tyk: time=“Dec 13 08:38:46” level=info msg=“Using Policies from Dashboard Service”
Dec 13 08:38:46 localhost tyk: time=“Dec 13 08:38:46” level=info msg=“Mutex lock acquired… calling”
Dec 13 08:38:46 localhost tyk: time=“Dec 13 08:38:46” level=info msg=“Calling dashboard service for policy list”
Dec 13 08:38:46 localhost tyk: time=“Dec 13 08:38:46” level=error msg=“Policy request failed: Get https://localhost:3000/system/policies: x509: certificate signed by unknown authority”
Dec 13 08:38:46 localhost tyk: time=“Dec 13 08:38:46” level=info msg=“Policies found (0 total):”
Dec 13 08:38:46 localhost tyk: time=“Dec 13 08:38:46” level=debug msg=“Calling: https://localhost:3000/system/apis
Dec 13 08:38:46 localhost tyk: time=“Dec 13 08:38:46” level=debug msg=“Using: NodeID: solo-e49bff63-dac4-4359-9862-b81b6b397e64”
Dec 13 08:38:46 localhost tyk-analytics: 2018/12/13 08:38:46 http: TLS handshake error from [::1]:52992: remote error: tls: bad certificate
Dec 13 08:38:46 localhost tyk-analytics: 2018/12/13 08:38:46 http: TLS handshake error from [::1]:52994: remote error: tls: bad certificate
Dec 13 08:38:46 localhost tyk: time=“Dec 13 08:38:46” level=error msg=“failed to load API specs: Get https://localhost:3000/system/apis: x509: certificate signed by unknown authority”
Dec 13 08:38:46 localhost tyk: time=“Dec 13 08:38:46” level=warning msg=“No API Definitions found, not reloading”
Dec 13 08:38:46 localhost tyk: time=“Dec 13 08:38:46” level=info msg=“reload: complete”
Dec 13 08:38:46 localhost tyk: time=“Dec 13 08:38:46” level=info msg=“Initiating coprocess reload”
Dec 13 08:38:46 localhost tyk: time=“Dec 13 08:38:46” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 13 08:38:46 localhost tyk-analytics: 2018/12/13 08:38:46 http: TLS handshake error from [::1]:52996: remote error: tls: bad certificate
Dec 13 08:38:47 localhost tyk: time=“Dec 13 08:38:47” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:38:47 localhost tyk-analytics: 2018/12/13 08:38:47 http2: server: error reading preface from client [::1]:45196: remote error: tls: unknown certificate authority
Dec 13 08:38:48 localhost tyk: time=“Dec 13 08:38:48” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:38:49 localhost tyk: time=“Dec 13 08:38:49” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:38:49 localhost tyk: time=“Dec 13 08:38:49” level=debug msg=“[STORE] Getting WAS: PollerActiveInstanceID”
Dec 13 08:38:49 localhost tyk: time=“Dec 13 08:38:49” level=debug msg=“[STORE] Getting: host-checker:PollerActiveInstanceID”
Dec 13 08:38:49 localhost tyk: time=“Dec 13 08:38:49” level=debug msg=“Primary instance set, I am master”
Dec 13 08:38:49 localhost tyk: time=“Dec 13 08:38:49” level=debug msg=“[STORE] SET Raw key is: PollerActiveInstanceID”
Dec 13 08:38:49 localhost tyk: time=“Dec 13 08:38:49” level=debug msg=“[STORE] Setting key: host-checker:PollerActiveInstanceID”
Dec 13 08:38:50 localhost tyk: time=“Dec 13 08:38:50” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:38:51 localhost tyk: time=“Dec 13 08:38:51” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:38:51 localhost tyk: time=“Dec 13 08:38:51” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 13 08:38:51 localhost tyk-analytics: 2018/12/13 08:38:51 http: TLS handshake error from [::1]:53000: remote error: tls: bad certificate
Dec 13 08:38:52 localhost tyk: time=“Dec 13 08:38:52” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:38:52 localhost tyk-analytics: 2018/12/13 08:38:52 http2: server: error reading preface from client [::1]:45200: remote error: tls: unknown certificate authority
Dec 13 08:38:53 localhost tyk: time=“Dec 13 08:38:53” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:38:54 localhost tyk: time=“Dec 13 08:38:54” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:38:55 localhost tyk: time=“Dec 13 08:38:55” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:38:56 localhost tyk: time=“Dec 13 08:38:56” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:38:56 localhost tyk: time=“Dec 13 08:38:56” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 13 08:38:56 localhost tyk-analytics: 2018/12/13 08:38:56 http: TLS handshake error from [::1]:53004: remote error: tls: bad certificate
Dec 13 08:38:57 localhost tyk: time=“Dec 13 08:38:57” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:38:58 localhost tyk: time=“Dec 13 08:38:58” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:38:58 localhost tyk-analytics: 2018/12/13 08:38:58 http2: server: error reading preface from client [::1]:45208: remote error: tls: unknown certificate authority
Dec 13 08:38:59 localhost tyk: time=“Dec 13 08:38:59” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:38:59 localhost tyk: time=“Dec 13 08:38:59” level=debug msg=“[STORE] Getting WAS: PollerActiveInstanceID”
Dec 13 08:38:59 localhost tyk: time=“Dec 13 08:38:59” level=debug msg=“[STORE] Getting: host-checker:PollerActiveInstanceID”
Dec 13 08:38:59 localhost tyk: time=“Dec 13 08:38:59” level=debug msg=“Primary instance set, I am master”
Dec 13 08:38:59 localhost tyk: time=“Dec 13 08:38:59” level=debug msg=“[STORE] SET Raw key is: PollerActiveInstanceID”
Dec 13 08:38:59 localhost tyk: time=“Dec 13 08:38:59” level=debug msg=“[STORE] Setting key: host-checker:PollerActiveInstanceID”
Dec 13 08:39:00 localhost tyk: time=“Dec 13 08:39:00” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:01 localhost tyk: time=“Dec 13 08:39:01” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:01 localhost tyk: time=“Dec 13 08:39:01” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 13 08:39:01 localhost tyk-analytics: 2018/12/13 08:39:01 http: TLS handshake error from [::1]:53012: remote error: tls: bad certificate
Dec 13 08:39:02 localhost tyk: time=“Dec 13 08:39:02” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:03 localhost tyk: time=“Dec 13 08:39:03” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:03 localhost tyk-analytics: 2018/12/13 08:39:03 http2: server: error reading preface from client [::1]:45212: remote error: tls: unknown certificate authority
Dec 13 08:39:04 localhost tyk: time=“Dec 13 08:39:04” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:05 localhost tyk: time=“Dec 13 08:39:05” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:06 localhost tyk: time=“Dec 13 08:39:06” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:06 localhost tyk: time=“Dec 13 08:39:06” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 13 08:39:06 localhost tyk-analytics: 2018/12/13 08:39:06 http: TLS handshake error from [::1]:53016: remote error: tls: bad certificate
Dec 13 08:39:07 localhost tyk: time=“Dec 13 08:39:07” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:08 localhost tyk: time=“Dec 13 08:39:08” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:08 localhost tyk-analytics: 2018/12/13 08:39:08 http2: server: error reading preface from client [::1]:45216: remote error: tls: unknown certificate authority
Dec 13 08:39:09 localhost tyk: time=“Dec 13 08:39:09” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:09 localhost tyk: time=“Dec 13 08:39:09” level=debug msg=“[STORE] Getting WAS: PollerActiveInstanceID”
Dec 13 08:39:09 localhost tyk: time=“Dec 13 08:39:09” level=debug msg=“[STORE] Getting: host-checker:PollerActiveInstanceID”
Dec 13 08:39:09 localhost tyk: time=“Dec 13 08:39:09” level=debug msg=“Primary instance set, I am master”
Dec 13 08:39:09 localhost tyk: time=“Dec 13 08:39:09” level=debug msg=“[STORE] SET Raw key is: PollerActiveInstanceID”
Dec 13 08:39:09 localhost tyk: time=“Dec 13 08:39:09” level=debug msg=“[STORE] Setting key: host-checker:PollerActiveInstanceID”
Dec 13 08:39:10 localhost tyk: time=“Dec 13 08:39:10” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:11 localhost tyk: time=“Dec 13 08:39:11” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:11 localhost tyk: time=“Dec 13 08:39:11” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 13 08:39:11 localhost tyk-analytics: 2018/12/13 08:39:11 http: TLS handshake error from [::1]:53020: remote error: tls: bad certificate
Dec 13 08:39:12 localhost tyk: time=“Dec 13 08:39:12” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:12 localhost tyk: time=“Dec 13 08:39:12” level=info msg=“Reloading endpoints”
Dec 13 08:39:12 localhost tyk: time=“Dec 13 08:39:12” level=info msg=“Reload queued”
Dec 13 08:39:12 localhost tyk: time=“Dec 13 08:39:12” level=info msg=“reload: initiating”
Dec 13 08:39:12 localhost tyk: time=“Dec 13 08:39:12” level=debug msg=“Default JSVM timeout used: 5s”
Dec 13 08:39:12 localhost tyk: time=“Dec 13 08:39:12” level=info msg=“Loading policies”
Dec 13 08:39:12 localhost tyk: time=“Dec 13 08:39:12” level=info msg=“Using Policies from Dashboard Service”
Dec 13 08:39:12 localhost tyk: time=“Dec 13 08:39:12” level=info msg=“Mutex lock acquired… calling”
Dec 13 08:39:12 localhost tyk: time=“Dec 13 08:39:12” level=info msg=“Calling dashboard service for policy list”
Dec 13 08:39:12 localhost tyk: time=“Dec 13 08:39:12” level=error msg=“Policy request failed: Get https://localhost:3000/system/policies: x509: certificate signed by unknown authority”
Dec 13 08:39:12 localhost tyk: time=“Dec 13 08:39:12” level=info msg=“Policies found (0 total):”
Dec 13 08:39:12 localhost tyk: time=“Dec 13 08:39:12” level=debug msg=“Calling: https://localhost:3000/system/apis
Dec 13 08:39:12 localhost tyk: time=“Dec 13 08:39:12” level=debug msg=“Using: NodeID: solo-e49bff63-dac4-4359-9862-b81b6b397e64”
Dec 13 08:39:12 localhost tyk-analytics: 2018/12/13 08:39:12 http: TLS handshake error from [::1]:53022: remote error: tls: bad certificate
Dec 13 08:39:12 localhost tyk: time=“Dec 13 08:39:12” level=error msg=“failed to load API specs: Get https://localhost:3000/system/apis: x509: certificate signed by unknown authority”
Dec 13 08:39:12 localhost tyk: time=“Dec 13 08:39:12” level=warning msg=“No API Definitions found, not reloading”
Dec 13 08:39:12 localhost tyk: time=“Dec 13 08:39:12” level=info msg=“reload: complete”
Dec 13 08:39:12 localhost tyk: time=“Dec 13 08:39:12” level=info msg=“Initiating coprocess reload”
Dec 13 08:39:12 localhost tyk-analytics: 2018/12/13 08:39:12 http: TLS handshake error from [::1]:53024: remote error: tls: bad certificate
Dec 13 08:39:13 localhost tyk: time=“Dec 13 08:39:13” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:13 localhost tyk-analytics: 2018/12/13 08:39:13 http2: server: error reading preface from client [::1]:45224: remote error: tls: unknown certificate authority
Dec 13 08:39:14 localhost tyk: time=“Dec 13 08:39:14” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:15 localhost tyk: time=“Dec 13 08:39:15” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:16 localhost tyk: time=“Dec 13 08:39:16” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:16 localhost tyk: time=“Dec 13 08:39:16” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 13 08:39:16 localhost tyk-analytics: 2018/12/13 08:39:16 http: TLS handshake error from [::1]:53028: remote error: tls: bad certificate
Dec 13 08:39:17 localhost tyk: time=“Dec 13 08:39:17” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:18 localhost tyk: time=“Dec 13 08:39:18” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:19 localhost tyk-analytics: 2018/12/13 08:39:19 http2: server: error reading preface from client [::1]:45228: remote error: tls: unknown certificate authority
Dec 13 08:39:19 localhost tyk: time=“Dec 13 08:39:19” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:19 localhost tyk: time=“Dec 13 08:39:19” level=debug msg=“[STORE] Getting WAS: PollerActiveInstanceID”
Dec 13 08:39:19 localhost tyk: time=“Dec 13 08:39:19” level=debug msg=“[STORE] Getting: host-checker:PollerActiveInstanceID”
Dec 13 08:39:19 localhost tyk: time=“Dec 13 08:39:19” level=debug msg=“Primary instance set, I am master”
Dec 13 08:39:19 localhost tyk: time=“Dec 13 08:39:19” level=debug msg=“[STORE] SET Raw key is: PollerActiveInstanceID”
Dec 13 08:39:19 localhost tyk: time=“Dec 13 08:39:19” level=debug msg=“[STORE] Setting key: host-checker:PollerActiveInstanceID”
Dec 13 08:39:20 localhost tyk: time=“Dec 13 08:39:20” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:21 localhost tyk: time=“Dec 13 08:39:21” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:21 localhost tyk: time=“Dec 13 08:39:21” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 13 08:39:21 localhost tyk-analytics: 2018/12/13 08:39:21 http: TLS handshake error from [::1]:53032: remote error: tls: bad certificate
Dec 13 08:39:22 localhost tyk: time=“Dec 13 08:39:22” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:23 localhost tyk: time=“Dec 13 08:39:23” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:24 localhost tyk: time=“Dec 13 08:39:24” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:24 localhost tyk-analytics: 2018/12/13 08:39:24 http2: server: error reading preface from client [::1]:45234: remote error: tls: unknown certificate authority
Dec 13 08:39:25 localhost tyk: time=“Dec 13 08:39:25” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:26 localhost tyk: time=“Dec 13 08:39:26” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:26 localhost tyk: time=“Dec 13 08:39:26” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 13 08:39:26 localhost tyk-analytics: 2018/12/13 08:39:26 http: TLS handshake error from [::1]:53038: remote error: tls: bad certificate
Dec 13 08:39:27 localhost tyk: time=“Dec 13 08:39:27” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:28 localhost tyk: time=“Dec 13 08:39:28” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:29 localhost tyk: time=“Dec 13 08:39:29” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:29 localhost tyk-analytics: 2018/12/13 08:39:29 http2: server: error reading preface from client [::1]:45238: remote error: tls: unknown certificate authority
Dec 13 08:39:29 localhost tyk: time=“Dec 13 08:39:29” level=debug msg=“[STORE] Getting WAS: PollerActiveInstanceID”
Dec 13 08:39:29 localhost tyk: time=“Dec 13 08:39:29” level=debug msg=“[STORE] Getting: host-checker:PollerActiveInstanceID”
Dec 13 08:39:29 localhost tyk: time=“Dec 13 08:39:29” level=debug msg=“Primary instance set, I am master”
Dec 13 08:39:29 localhost tyk: time=“Dec 13 08:39:29” level=debug msg=“[STORE] SET Raw key is: PollerActiveInstanceID”
Dec 13 08:39:29 localhost tyk: time=“Dec 13 08:39:29” level=debug msg=“[STORE] Setting key: host-checker:PollerActiveInstanceID”
Dec 13 08:39:30 localhost tyk: time=“Dec 13 08:39:30” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:31 localhost tyk: time=“Dec 13 08:39:31” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:31 localhost tyk-analytics: 2018/12/13 08:39:31 http: TLS handshake error from [::1]:53042: remote error: tls: bad certificate
Dec 13 08:39:31 localhost tyk: time=“Dec 13 08:39:31” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 13 08:39:32 localhost tyk: time=“Dec 13 08:39:32” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:33 localhost tyk: time=“Dec 13 08:39:33” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:34 localhost tyk: time=“Dec 13 08:39:34” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:34 localhost tyk-analytics: 2018/12/13 08:39:34 http2: server: error reading preface from client [::1]:45242: remote error: tls: unknown certificate authority
Dec 13 08:39:35 localhost tyk: time=“Dec 13 08:39:35” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:36 localhost tyk: time=“Dec 13 08:39:36” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:36 localhost tyk: time=“Dec 13 08:39:36” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 13 08:39:36 localhost tyk-analytics: 2018/12/13 08:39:36 http: TLS handshake error from [::1]:53046: remote error: tls: bad certificate
Dec 13 08:39:37 localhost tyk: time=“Dec 13 08:39:37” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:38 localhost tyk: time=“Dec 13 08:39:38” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:39 localhost tyk: time=“Dec 13 08:39:39” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:39 localhost tyk-analytics: 2018/12/13 08:39:39 http2: server: error reading preface from client [::1]:45246: remote error: tls: unknown certificate authority
Dec 13 08:39:39 localhost tyk: time=“Dec 13 08:39:39” level=debug msg=“[STORE] Getting WAS: PollerActiveInstanceID”
Dec 13 08:39:39 localhost tyk: time=“Dec 13 08:39:39” level=debug msg=“[STORE] Getting: host-checker:PollerActiveInstanceID”
Dec 13 08:39:39 localhost tyk: time=“Dec 13 08:39:39” level=debug msg=“Primary instance set, I am master”
Dec 13 08:39:39 localhost tyk: time=“Dec 13 08:39:39” level=debug msg=“[STORE] SET Raw key is: PollerActiveInstanceID”
Dec 13 08:39:39 localhost tyk: time=“Dec 13 08:39:39” level=debug msg=“[STORE] Setting key: host-checker:PollerActiveInstanceID”
Dec 13 08:39:40 localhost tyk: time=“Dec 13 08:39:40” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:41 localhost tyk: time=“Dec 13 08:39:41” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:41 localhost tyk: time=“Dec 13 08:39:41” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 13 08:39:41 localhost tyk-analytics: 2018/12/13 08:39:41 http: TLS handshake error from [::1]:53050: remote error: tls: bad certificate
Dec 13 08:39:42 localhost tyk: time=“Dec 13 08:39:42” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:43 localhost tyk: time=“Dec 13 08:39:43” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:44 localhost tyk: time=“Dec 13 08:39:44” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:44 localhost tyk-analytics: 2018/12/13 08:39:44 http2: server: error reading preface from client [::1]:45250: remote error: tls: unknown certificate authority
Dec 13 08:39:45 localhost tyk: time=“Dec 13 08:39:45” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:46 localhost tyk: time=“Dec 13 08:39:46” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:46 localhost tyk: time=“Dec 13 08:39:46” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 13 08:39:46 localhost tyk-analytics: 2018/12/13 08:39:46 http: TLS handshake error from [::1]:53056: remote error: tls: bad certificate
Dec 13 08:39:47 localhost tyk: time=“Dec 13 08:39:47” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:48 localhost tyk: time=“Dec 13 08:39:48” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:49 localhost tyk: time=“Dec 13 08:39:49” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:49 localhost tyk-analytics: 2018/12/13 08:39:49 http2: server: error reading preface from client [::1]:45256: remote error: tls: unknown certificate authority
Dec 13 08:39:49 localhost tyk: time=“Dec 13 08:39:49” level=debug msg=“[STORE] Getting WAS: PollerActiveInstanceID”
Dec 13 08:39:49 localhost tyk: time=“Dec 13 08:39:49” level=debug msg=“[STORE] Getting: host-checker:PollerActiveInstanceID”
Dec 13 08:39:49 localhost tyk: time=“Dec 13 08:39:49” level=debug msg=“Primary instance set, I am master”
Dec 13 08:39:49 localhost tyk: time=“Dec 13 08:39:49” level=debug msg=“[STORE] SET Raw key is: PollerActiveInstanceID”
Dec 13 08:39:49 localhost tyk: time=“Dec 13 08:39:49” level=debug msg=“[STORE] Setting key: host-checker:PollerActiveInstanceID”
Dec 13 08:39:50 localhost tyk: time=“Dec 13 08:39:50” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:51 localhost tyk: time=“Dec 13 08:39:51” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:51 localhost tyk: time=“Dec 13 08:39:51” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 13 08:39:51 localhost tyk-analytics: 2018/12/13 08:39:51 http: TLS handshake error from [::1]:53060: remote error: tls: bad certificate
Dec 13 08:39:52 localhost tyk: time=“Dec 13 08:39:52” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:53 localhost tyk: time=“Dec 13 08:39:53” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:54 localhost tyk: time=“Dec 13 08:39:54” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:54 localhost tyk-analytics: 2018/12/13 08:39:54 http2: server: error reading preface from client [::1]:45260: remote error: tls: unknown certificate authority
Dec 13 08:39:55 localhost tyk: time=“Dec 13 08:39:55” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:56 localhost tyk: time=“Dec 13 08:39:56” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:56 localhost tyk-analytics: 2018/12/13 08:39:56 http: TLS handshake error from [::1]:53064: remote error: tls: bad certificate
Dec 13 08:39:56 localhost tyk: time=“Dec 13 08:39:56” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 13 08:39:57 localhost tyk: time=“Dec 13 08:39:57” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:58 localhost tyk: time=“Dec 13 08:39:58” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:59 localhost tyk: time=“Dec 13 08:39:59” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:39:59 localhost tyk-analytics: 2018/12/13 08:39:59 http2: server: error reading preface from client [::1]:45264: remote error: tls: unknown certificate authority
Dec 13 08:39:59 localhost tyk: time=“Dec 13 08:39:59” level=debug msg=“[STORE] Getting WAS: PollerActiveInstanceID”
Dec 13 08:39:59 localhost tyk: time=“Dec 13 08:39:59” level=debug msg=“[STORE] Getting: host-checker:PollerActiveInstanceID”
Dec 13 08:39:59 localhost tyk: time=“Dec 13 08:39:59” level=debug msg=“Primary instance set, I am master”
Dec 13 08:39:59 localhost tyk: time=“Dec 13 08:39:59” level=debug msg=“[STORE] SET Raw key is: PollerActiveInstanceID”
Dec 13 08:39:59 localhost tyk: time=“Dec 13 08:39:59” level=debug msg=“[STORE] Setting key: host-checker:PollerActiveInstanceID”
Dec 13 08:40:00 localhost tyk: time=“Dec 13 08:40:00” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:40:01 localhost tyk: time=“Dec 13 08:40:01” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:40:01 localhost systemd: Started Session 98 of user root.
Dec 13 08:40:01 localhost systemd: Starting Session 98 of user root.
Dec 13 08:40:01 localhost tyk-analytics: 2018/12/13 08:40:01 http: TLS handshake error from [::1]:53068: remote error: tls: bad certificate
Dec 13 08:40:01 localhost tyk: time=“Dec 13 08:40:01” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 13 08:40:02 localhost tyk: time=“Dec 13 08:40:02” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:40:03 localhost tyk: time=“Dec 13 08:40:03” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:40:04 localhost tyk: time=“Dec 13 08:40:04” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:40:04 localhost tyk-analytics: 2018/12/13 08:40:04 http2: server: error reading preface from client [::1]:45268: remote error: tls: unknown certificate authority
Dec 13 08:40:05 localhost tyk: time=“Dec 13 08:40:05” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:40:06 localhost tyk: time=“Dec 13 08:40:06” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:40:06 localhost tyk-analytics: 2018/12/13 08:40:06 http: TLS handshake error from [::1]:53072: remote error: tls: bad certificate
Dec 13 08:40:06 localhost tyk: time=“Dec 13 08:40:06” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”
Dec 13 08:40:07 localhost tyk: time=“Dec 13 08:40:07” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:40:08 localhost tyk: time=“Dec 13 08:40:08” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:40:09 localhost tyk: time=“Dec 13 08:40:09” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:40:09 localhost tyk: time=“Dec 13 08:40:09” level=debug msg=“[STORE] Getting WAS: PollerActiveInstanceID”
Dec 13 08:40:09 localhost tyk: time=“Dec 13 08:40:09” level=debug msg=“[STORE] Getting: host-checker:PollerActiveInstanceID”
Dec 13 08:40:09 localhost tyk: time=“Dec 13 08:40:09” level=debug msg=“Primary instance set, I am master”
Dec 13 08:40:09 localhost tyk: time=“Dec 13 08:40:09” level=debug msg=“[STORE] SET Raw key is: PollerActiveInstanceID”
Dec 13 08:40:09 localhost tyk: time=“Dec 13 08:40:09” level=debug msg=“[STORE] Setting key: host-checker:PollerActiveInstanceID”
Dec 13 08:40:10 localhost tyk-analytics: 2018/12/13 08:40:10 http2: server: error reading preface from client [::1]:45272: remote error: tls: unknown certificate authority
Dec 13 08:40:10 localhost tyk: time=“Dec 13 08:40:10” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:40:11 localhost tyk: time=“Dec 13 08:40:11” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
Dec 13 08:40:11 localhost tyk-analytics: 2018/12/13 08:40:11 http: TLS handshake error from [::1]:53076: remote error: tls: bad certificate
Dec 13 08:40:11 localhost tyk: time=“Dec 13 08:40:11” level=error msg=“Request failed with error Get https://localhost:3000/register/node: x509: certificate signed by unknown authority; retrying in 5s”

the logs no found create api and key step information, because the error of:“failed to load API specs: Get https://localhost:3000/system/apis: x509: certificate signed by unknown authority”

After I have use other Cretificate (generate CA and sign cretificate refer the doc: How to setup your own CA with OpenSSL · GitHub) ,start Tyk services(dashboard , pump and gateway) successful.

Good to hear you solved it!