Under nginx, and get the key can start crt ~ dry
With a nginx, multiple domain names, no problem.
server { listen 80; listen 443 ssl; server_name www.xxx.com xxx.com; # Reference certificate (must be placed under conf / ssl directory can use relative paths, other locations with absolute path) ssl_certificate /etc/nginx/conf.d/www.xxx.cn.crt; ssl_certificate_key /etc/nginx/conf.d/www.xxx.cn.key; # Protocol optimization (optional https protocol optimization, increased security) ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256: HIGH:! Anull:! MD5:! RC4:! GOD; ssl_prefer_server_ciphers on; ssl_session_cache shared:SSL:10m; ssl_session_timeout 10m; if ($server_port = 80){ rewrite ^(/.*)$ https://$host$1 permanent; } #charset koi8-r; #access_log /var/log/nginx/host.access.log main; location / { root /www/xxx; index index.php index.html index.htm; } error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } location ~ \.php$ { root /www/xxx; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }