Set up Ubuntu Apache2 SSL using .pem and .key from Cloudflare
问题 I am using Cloudflare to set up a secure connection on Ubuntu 20 using Apache2. I used their Origin Server wizard to generate the following files: example.com.pem (Origin Certificate) example.com.key file (Private key) I gave them the extensions suggested by Cloudflare. I ran this: sudo a2enmod ssl sudo systemctl restart apache2 This is my setup: <VirtualHost *:443> .... SSLEngine on SSLCertificateFile /path/example.com.pem SSLCertificateKeyFile /path/example.com.key The non-secure site works