一.阿里云ssl证书申请
在阿里云的ssl证书服务里找到这个免费的申请
二.证书内容修改
下载Apache2类的证书
证书文件如上图所示,将chain内的所有内容复制到public文件下面即可
三.部署至服务器
<VirtualHost *:443>
ServerName xxx.xxx.com
DocumentRoot /var/www/html/xxx/public
SSLCertificateFile /etc/apache2/xxx/xxx.xxx.com.crt
SSLCertificateKeyFile /etc/apache2/xxx/xxx.xxx.com.key
SSLCACertificateFile /etc/apache2/xxx/issuer.crt
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!3DES:!MD5:!ADH:!RC4:!DH:!DHE
SSLEngine on
</VirtualHost>