...
Code Block | ||
---|---|---|
| ||
sudo mvcp www.earth.com.crt /etc/ssl/certs sudo chown root:root /etc/ssl/certs/www.earth.com.crt |
...
Store the private key into the protected folder,
Code Block | ||
---|---|---|
| ||
sudo cp www.earth.com_server.key /etc/ssl/private/ chmod 600 /etc/ssl/private/www.earth.com_server.key # The file should only be view-able by the owner sudo chown root:ssl-cert /etc/ssl/private/www.earth.com_server.key # Make the user starting Apache the owner, in this case it is root. sudo mv www.earth.com_server.key /etc/ssl/private/ |
Info |
---|
The ssl-cert group is a special group to make it easy for other processes to use certs. |
...