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