在apache裡建https就這麼簡單...
Reference
- Getting the required software
yum install mod_ssl openssl
- Generate a self-signed certificate
# Generate private key openssl genrsa -out ca.key 1024 # Generate CSR openssl req -new -key ca.key -out ca.csr # Generate Self Signed Key openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt # Copy the files to the correct locations cp ca.crt /etc/pki/tls/certs cp ca.key /etc/pki/tls/private/ca.key cp ca.csr /etc/pki/tls/private/ca.csr
- Setting up the virtual hosts
AllowOverride All DocumentRoot /var/www/vhosts/yoursite.com/httpdocs ServerName yoursite.com - Configuring the firewall
yum install mod_ssl openssl
Reference
0 意見:
張貼意見