This generates a different file localhost.crt during the /and so on/pki/tls/certs/ directory. The desired file name matches the default that may be assigned within the SSLCertificateFile directive in /and so forth/httpd/conf. There are various tips on how to add your new certificate to your EC2 instance, but probably the https://www.hostscheap.com/magento-2-install-service