Kibana alerts and actions setup

i am trying to get alerting and actions working but it seems to be disabled. Kibana points me to Alerting and Actions | Kibana Guide [7.10] | Elastic

I have security setup already in Elasticsearch for authentication.
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12

I then ran the following for kibana to create a certificate. I also tried with the actual hostname and ip address but that didn't help either.

bin/Elasticsearch-certutil cert -name kibana-server -dns localhost,127.0.0.1

it created a file in /usr/share/Elasticsearch/kibana-server.p12. I then copied it to the kibana directory in /etc/kibana and then set the following configs in kibana.yml. I tried to start up kibana but no luck, just keeps failing.

server.port: 5601
server.host: "######"
server.name: "######"
Elasticsearch.hosts: ["https://######:9200"]
Elasticsearch.username: "kibana_system"
Elasticsearch.password: "*****"
logging.dest: /var/log/kibana/kibana.log
xpack.monitoring.enabled: true
xpack.monitoring.kibana.collection.enabled: true
server.ssl.enabled: true
server.ssl.keystore.path: "kibana-server.p12"
server.ssl.keystore.password: ""

Not sure what I'm missing to get this working so that i can use the Alerting and Actions part of management in the Kibana UI. any help is appreciated.

any help would be much appreciated.