sh 生成强Diffie-Hellman群|| Dhparams 2048
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 生成强Diffie-Hellman群|| Dhparams 2048相关的知识,希望对你有一定的参考价值。
# generate dhparams
sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048
# create /etc/nginx/snippets/ssl-params.conf
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
ssl_ecdh_curve secp384r1; # Requires nginx >= 1.1.0
ssl_session_cache shared:SSL:10m;
ssl_session_tickets off; # Requires nginx >= 1.5.9
ssl_stapling on; # Requires nginx >= 1.3.7
ssl_stapling_verify on; # Requires nginx => 1.3.7
resolver 8.8.8.8 8.8.4.4 valid=300s;
resolver_timeout 5s;
#add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
add_header Strict-Transport-Security "max-age=63072000; includeSubdomains";
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
ssl_dhparam /etc/ssl/certs/dhparam.pem;
# then you can include it
include snippets/ssl-params.conf
以上是关于sh 生成强Diffie-Hellman群|| Dhparams 2048的主要内容,如果未能解决你的问题,请参考以下文章
python 生成强密码,关注速度和交替打字。
Diffie-Hellman 密钥交换&ElGamal协议的安全密钥交换
Diffie-Hellman密钥协商算法
如何处理服务器SSL收到了一个弱临时Diffie-Hellman 密钥?
Diffie-Hellman密钥交换算法
Diffie-Hellman密钥交换