Create SSL Certificate
How to create a cerficiate for https
Create Certificate Singning Request (CSR) using OpenSSL:
openssl req -sha256 -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr
When asked for a password, leave blank.
Now upload the CSR to StartSSL and create the certificate.
Copy the certificate to /etc/ssl/certs/server.crt
, the key file to /etc/ssl/private/server.key
, and the intermediate certificate to /etc/ssl/certs/sub.class1.server.ca.pem
.
Finally configure and restart Apache.