# openssl req -new -days 365 -x509 -nodes -out /etc/pki/tls/certs/localhost.crt -keyout /etc/pki/tls/private/localhost.key # systemctl restart httpd
Note that the "365" above can be increased to 99999, etc.
More info at unixhealthcheck.com