made little more progress. now kibana is not dying but i have following error messages.
and https:// gives me only message called "Kibana server is not ready yet"
{"type":"log","@timestamp":"2021-02-02T15:01:35Z","tags":["warning","config","deprecation"],"pid":8940,"message":"Config key [monitoring.cluster_alerts.email_notifications.email_address] will be required for email notifications to work in 8.0.\""}
{"type":"log","@timestamp":"2021-02-02T15:01:35Z","tags":["warning","plugins","security","config"],"pid":8940,"message":"Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml"}
{"type":"log","@timestamp":"2021-02-02T15:01:35Z","tags":["warning","plugins","reporting","config"],"pid":8940,"message":"Generating a random key for xpack.reporting.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.reporting.encryptionKey in kibana.yml"}
{"type":"log","@timestamp":"2021-02-02T15:01:35Z","tags":["warning","plugins","reporting","config"],"pid":8940,"message":"Chromium sandbox provides an additional layer of protection, but is not supported for Linux Red Hat Linux 7.5 OS. Automatically setting 'xpack.reporting.capture.browser.chromium.disableSandbox: true'."}
{"type":"log","@timestamp":"2021-02-02T15:01:35Z","tags":["info","plugins","monitoring","monitoring"],"pid":8940,"message":"config sourced from: production cluster"}
{"type":"log","@timestamp":"2021-02-02T15:01:36Z","tags":["info","savedobjects-service"],"pid":8940,"message":"Waiting until all Elasticsearch nodes are compatible with Kibana before starting saved objects migrations..."}
{"type":"log","@timestamp":"2021-02-02T15:01:36Z","tags":["error","elasticsearch","monitoring"],"pid":8940,"message":"Request error, retrying\nGET https://perelkm01:9200/_xpack => self signed certificate in certificate chain"}
{"type":"log","@timestamp":"2021-02-02T15:01:36Z","tags":["warning","elasticsearch","monitoring"],"pid":8940,"message":"Unable to revive connection: https://perelkm01:9200/"}
{"type":"log","@timestamp":"2021-02-02T15:01:36Z","tags":["warning","elasticsearch","monitoring"],"pid":8940,"message":"No living connections"}
{"type":"log","@timestamp":"2021-02-02T15:01:36Z","tags":["warning","plugins","licensing"],"pid":8940,"message":"License information could not be obtained from Elasticsearch due to Error: No Living connections error"}
{"type":"log","@timestamp":"2021-02-02T15:01:36Z","tags":["warning","plugins","monitoring","monitoring"],"pid":8940,"message":"X-Pack Monitoring Cluster Alerts will not be available: No Living connections"}
{"type":"log","@timestamp":"2021-02-02T15:01:36Z","tags":["error","elasticsearch","data"],"pid":8940,"message":"[ConnectionError]: self signed certificate in certificate chain"}
{"type":"log","@timestamp":"2021-02-02T15:01:36Z","tags":["error","savedobjects-service"],"pid":8940,"message":"Unable to retrieve version information from Elasticsearch nodes."}
{"type":"log","@timestamp":"2021-02-02T15:01:38Z","tags":["error","elasticsearch","data"],"pid":8940,"message":"[ConnectionError]: self signed certificate in certificate chain"}
{"type":"log","@timestamp":"2021-02-02T15:01:41Z","tags":["error","elasticsearch","data"],"pid":8940,"message":"[ConnectionError]: self signed certificate in certificate chain"}
{"type":"log","@timestamp":"2021-02-02T15:01:43Z","tags":["error","elasticsearch","data"],"pid":8940,"message":"[ConnectionError]: self signed certificate in certificate chain"}
{"type":"log","@timestamp":"2021-02-02T15:01:46Z","tags":["error","elasticsearch","data"],"pid":8940,"message":"[ConnectionError]: self signed certificate in certificate chain"}
this is what my config looks like kibana.yml
server.ssl.enabled: true
server.ssl.certificate: /etc/kibana/config/kibana.pem
server.ssl.key: /etc/kibana/config/kibana.key
# Optional setting that enables you to specify a path to the PEM file for the certificate
# authority for your Elasticsearch instance.
elasticsearch.ssl.certificateAuthorities: [ "/etc/kibana/config/selfca.pem" ]
This is what my elasticsearch.yml file looks like
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: /etc/elasticsearch/config/perelkm01.p12
xpack.security.transport.ssl.truststore.path: /etc/elasticsearch/config/perelkm01.p12
# SSL setup
xpack.security.http.ssl.enabled: true
xpack.security.http.ssl.keystore.path: /etc/elasticsearch/config/perelkm01.p12
xpack.security.http.ssl.truststore.path: /etc/elasticsearch/config/perelkm01.p12