I am using Elastic 7.9.2 version and wanted to use security. so I ran :
bin/elasticsearch-certutil cert -out config/elastic-certificates.p12 -pass ""