项目作者: 0xfffb4dc0d3

项目描述 :
Get all 100/100/100/100 score on sslabs tlsv1.3
高级语言:
项目地址: git://github.com/0xfffb4dc0d3/nginx-ssllabs-tlsv1.3.git
创建时间: 2020-05-01T21:27:49Z
项目社区:https://github.com/0xfffb4dc0d3/nginx-ssllabs-tlsv1.3

开源协议:

下载


nginx-ssllabs-tlsv1.3

Get A+ and score 100/100/100/100 on sslabs tlsv1.3

For this i’m use SSL from Letsencrypt

1) Generate ssl certificate 4096 bit

2) Generate Key exchange 4096 bit (for get 100% score of Key exchange) :

  1. ```
  2. openssl dhparam -out dhparams.pem 4096
  3. ```

3) Download nginx from source http://nginx.org/en/download.html

5) Download OpenSSL from source https://www.openssl.org/source/

5) Edit ssl.h (openssl_src/include/openssl/ssl.h) on openssl folder source which already downloaded

6) Go to line 178 & 181 and remove TLS_AES_128_GCM_SHA256 (Based on https://github.com/ssllabs/research/wiki/SSL-Server-Rating-Guide#cipher-strength , 128 bit keys will scored 90%, so you need removed it if you want get 100% Cipher strength.). code like this :

  1. ```C
  2. #define TLS_DEFAULT_CIPHERSUITES "TLS_AES_256_GCM_SHA384:" \
  3. "TLS_CHACHA20_POLY1305_SHA256:" \
  4. "TLS_AES_128_GCM_SHA256"
  5. #else
  6. #define TLS_DEFAULT_CIPHERSUITES "TLS_AES_256_GCM_SHA384:" \
  7. "TLS_AES_128_GCM_SHA256"
  8. #endif
  9. ```
  10. edit to like this :
  11. ```C
  12. #define TLS_DEFAULT_CIPHERSUITES "TLS_AES_256_GCM_SHA384:" \
  13. "TLS_CHACHA20_POLY1305_SHA256"
  14. #else
  15. #define TLS_DEFAULT_CIPHERSUITES "TLS_AES_256_GCM_SHA384"
  16. #endif
  17. ```

7) Compile nginx with openssl which you’re downloaded :

  1. ```
  2. ./Configure ....
  3. ....
  4. --with-openssl=openssl_src
  5. make && make install
  6. ````

8) You’re done , you get A+ score with 100/100/100/100 :)

Based on https://github.com/ssllabs/research/wiki/SSL-Server-Rating-Guide

  • Protocol : min TLSv1.2 for get 100%
  • Key exchange : min 4096 bit for get 100%
  • Cipher strenght : >= 256 bit for get 100%

My Results : ssllabs

www.infecthingthe.world

A+ with score 100/100/100/100 TLSv1.3 :tada:

Buy Me a Coffee at ko-fi.com