cd /etc/pki/tls/certs/ rm localhost.crt make localhost.crt mv localhost.key ../private/localhost.key cd ../private/ cp localhost.key localhost.key.orig openssl rsa -in localhost.key.orig -out localhost.key done or just: cd /etc/pki/tls/certs/ make testcert cd /etc/pki/tls/certs/ rm /etc/pki/tls/certs/localhost.crt /etc/pki/tls/private/localhost.key /usr/libexec/httpd-ssl-gencerts rpm -ql sscg (Simple SSL certificate generator)