PHPstudy下apache证书配置
从阿里云下载的证书,安装阿里云给出的操作方法没法安装,因为在hyypd-ssl.conf找不到阿里云安装步骤里面的配置语句,怎么办啊?...
从阿里云下载的证书,安装阿里云给出的操作方法没法安装,因为在hyypd-ssl.conf找不到阿里云安装步骤里面的配置语句,怎么办啊?
展开
展开全部
nginx配置ssl,除了默认的配置 需要添加如下配置
listen 443 ssl http2;
ssl_certificate *.crt;#证书地址
ssl_certificate_key *.key;#证书地址
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_prefer_server_ciphers on;
ssl_session_timeout 10m;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_buffer_size 1400;
add_header Strict-Transport-Security max-age=15768000;
ssl_stapling on;
ssl_stapling_verify on;
listen 443 ssl http2;
ssl_certificate *.crt;#证书地址
ssl_certificate_key *.key;#证书地址
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_prefer_server_ciphers on;
ssl_session_timeout 10m;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_buffer_size 1400;
add_header Strict-Transport-Security max-age=15768000;
ssl_stapling on;
ssl_stapling_verify on;
追问
是在hyypd-ssl.conf这个文件里面加入这个代码?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询