TLS Certificate Issue on Elastic cluster

Since We are installing on ubuntu used command
sudo bin/elasticsearch-certutil cert -out /etc/elasticsearch/elastic-certificates.p12 -pass ""

and i have set the above settings only in elasticsearch.yml but getting same error