Kibana ot conecting to elasticsearch

On startig kibana after startig Elasticsearch kibana is logging this error

[ERROR][Elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. Request timed out

My kibana.yml is

Elasticsearch.hosts: ['https://192.168.2.100:9200']
Elasticsearch.serviceAccountToken: AAEAAWVsYXN0aWMva2liYW5hL2Vucm9sbC1wcm9jZXNzLXRva2VuLTE2NTQ4MDU1OTY2NTk6RlVJeFBSN2dTVE9aWm9aQTVvdTR6QQ
Elasticsearch.ssl.certificateAuthorities: [/Users/shivamagarwal/Downloads/kibana-8.2.2/data/ca_1654805597553.crt]
xpack.fleet.outputs: [{id: fleet-default-output, name: default, is_default: true, is_default_monitoring: true, type: Elasticsearch, hosts: ['https://192.168.2.100:9200'], ca_trusted_fingerprint: 68610900779032c6cc17ee0c32b14baecd93e338be0b9fadc8d887279196c292}]

My Elasticsearch.yml is

Enable security features
xpack.security.enabled: true
xpack.security.enrollment.enabled: true
Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents
xpack.security.http.ssl:
enabled: true
keystore.path: certs/http.p12
xpack.security.transport.ssl:
enabled: true
verification_mode: certificate
keystore.path: certs/transport.p12
truststore.path: certs/transport.p12
cluster.initial_master_nodes: ["Shivams-MacBook-Pro.local"]
http.host: 0.0.0.0