Elastic Doesnt work after enabling security settings on ubuntu

change ownership as mentioned below and try again -

chown elasticsearch /etc/elasticsearch/elastic-certificates.p12

you need to be root to run this command.