- Generate a Private Key
openssl genrsa -des3 -out server.key 1024
- Generate a CSR (Certificate Signing Request)
openssl req -new -key server.key -out server.csr
- Remove Passphrase from Key
cp server.key server.key.org openssl rsa -in server.key.org -out server.key
- Generating a Self-Signed Certificate
openssl x509 -req -days 1365 -in server.csr -signkey server.key -out server.crt
- Installing the Private Key and Certificate
cp server.crt /etc/pki/tls/certs/ssl.crt cp server.key /etc/pki/tls/private/ssl.key