Go to file
Hakase 58858c503b Add HPACK & Remove nginx server header. 2018-09-03 18:56:48 +09:00
LICENSE Update LICENSE 2018-06-09 02:44:43 +09:00
README.md Add HPACK & Remove nginx server header. 2018-09-03 18:56:48 +09:00
nginx_hpack_push.patch Some sources were missing. 2018-06-05 23:38:40 +09:00
nginx_hpack_push_1.15.3.patch Push patch compatibility in nginx 1.15.3 2018-08-16 16:16:16 +09:00
nginx_hpack_push_fix.patch Some sources were missing. 2018-06-05 23:38:40 +09:00
nginx_hpack_remove_server_header_1.15.3.patch Add HPACK & Remove nginx server header. 2018-09-03 18:56:48 +09:00
openssl-equal-pre2.patch Add the pre2 version again. 2018-06-05 08:03:41 +09:00
openssl-equal-pre7.patch Add support draft 26 2018-06-18 16:43:12 +09:00
openssl-equal-pre7_ciphers.patch Add support draft 26 2018-06-18 16:43:12 +09:00
openssl-equal-pre8.patch Add support draft 26 2018-06-18 16:43:12 +09:00
openssl-equal-pre8_ciphers.patch Add support draft 26 2018-06-18 16:43:12 +09:00
openssl-equal-pre9.patch Add pre10 patches 2018-08-23 00:10:35 +09:00
openssl-equal-pre9_ciphers.patch Add pre10 patches 2018-08-23 00:10:35 +09:00
openssl-equal-pre10.patch Add pre10 patches 2018-08-23 00:10:35 +09:00
openssl-equal-pre10_ciphers.patch Add pre10 patches 2018-08-23 00:10:35 +09:00
remove_nginx_server_header.patch Add remove server header, Update README.md 2018-06-24 23:31:13 +09:00

README.md

openssl-patch

OpenSSL Equal Preference Patch

This file is not an official OpenSSL patch. Problems can arise and this is your responsibility.

Original Sources

Information

Support TLS 1.3 draft 28 browsers - Chrome Canary, Firefox Nightly

Displays TLSv1.3 support for large sites.

Default support is in bold type.

Compatible OpenSSL-1.1.1-pre10-dev (OpenSSL, 22668 commits)

Patch files

You can find the OpenSSL 1.1.0h patch is here.

Here is the basic patch content.

  • Support TLS 1.3 draft 23 + 26 + 28 (Pre9~10) + final (Not support pre2 - 26, 28, final)
    • Server: draft 23 + 26 + 28
    • Client: draft 23 + 26 + 27 + 28
    • (pre9~10)Server: draft 23 + 26 + 28 + final
    • (pre9~10)Client: draft 23 + 26 + 27 + 28 + final
  • BoringSSL's Equal Preference Patch
  • Weak 3DES and not using ECDHE ciphers is not used in TLSv1.1 or later.
Patch file name Patch list
openssl-equal-pre2.patch Not support draft 26, 28.
openssl-equal-pre7.patch
openssl-equal-pre8.patch
TLS 1.3 cipher settings can not be changed on nginx.
openssl-equal-pre7_ciphers.patch
openssl-equal-pre8_ciphers.patch
TLS 1.3 cipher settings can be changed on nginx.
openssl-equal-pre9.patch
openssl-equal-pre10.patch
Support final (TLS 1.3), TLS 1.3 cipher settings can not be changed on nginx.
openssl-equal-pre9_ciphers.patch
openssl-equal-pre10_ciphers.patch
Support final (TLS 1.3), TLS 1.3 cipher settings can be changed on nginx.

The "_ciphers" patch file is a temporary change to the TLS 1.3 configuration.

Example of setting TLS 1.3 cipher in nginx (pre7 or higher):

Example Ciphers
Short Cipher TLS13+AESGCM+AES128:TLS13+AESGCM+AES256:TLS13+CHACHA20
Fullname Cipher TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256
TLS 1.3 + 1.2 ciphers TLS13+AESGCM+AES128:EECDH+AES128

Not OpenSSL patch files

Patch file name Patch list
nginx_hpack_push.patch Patch both the HPACK patch and the PUSH ERROR.
nginx_hpack_push_fix.patch Patch only the PUSH ERROR of the hpack patch. (If the HPACK patch has already been completed)
remove_nginx_server_header.patch Remove nginx server header. (http2, http1.1)
nginx_hpack_remove_server_header_1.15.3.patch HPACK + Remove nginx server header. (http2, http1.1)

How To Use?

OpenSSL Patch

git clone https://github.com/openssl/openssl.git
git clone https://github.com/hakasenyang/openssl-patch.git
cd openssl
patch -p1 < ../openssl-patch/openssl-equal-pre10_ciphers.patch

And then use --with-openssl in nginx or build after ./config.

nginx HPACK Patch

Run it from the nginx directory.

If you have a PUSH patch, use it as follows.

curl https://raw.githubusercontent.com/hakasenyang/openssl-patch/master/nginx_hpack_push_fix.patch | patch -p1

If you did not patch PUSH, use it as follows.

curl https://raw.githubusercontent.com/hakasenyang/openssl-patch/master/nginx_hpack_push.patch | patch -p1

And then check the nginx configuration below.

nginx Remove Server Header Patch

Run it from the nginx directory.

curl https://raw.githubusercontent.com/hakasenyang/openssl-patch/master/remove_nginx_server_header.patch | patch -p1

nginx Configuration

HPACK Patch

Add configure arguments : --with-http_v2_hpack_enc

SSL Setting

ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers [Copy it from below and paste it here.];
ssl_ecdh_curve X25519:P-256:P-384;
ssl_prefer_server_ciphers on;

OpenSSL-1.1.1-pre2 ciphers (draft 23)

[TLS13-AES-128-GCM-SHA256|TLS13-AES-256-GCM-SHA384|TLS13-CHACHA20-POLY1305-SHA256]:[EECDH+ECDSA+AESGCM+AES128|EECDH+ECDSA+CHACHA20]:EECDH+ECDSA+AESGCM+AES256:EECDH+ECDSA+AES128+SHA:EECDH+ECDSA+AES256+SHA:[EECDH+aRSA+AESGCM+AES128|EECDH+aRSA+CHACHA20]:EECDH+aRSA+AESGCM+AES256:EECDH+aRSA+AES128+SHA:EECDH+aRSA+AES256+SHA:RSA+AES128+SHA:RSA+AES256+SHA:RSA+3DES

OpenSSL-1.1.1-pre7 - 10 ciphers (draft 23, 26, 28, (pre9-10) - final)

[EECDH+ECDSA+AESGCM+AES128|EECDH+ECDSA+CHACHA20]:EECDH+ECDSA+AESGCM+AES256:EECDH+ECDSA+AES128+SHA:EECDH+ECDSA+AES256+SHA:[EECDH+aRSA+AESGCM+AES128|EECDH+aRSA+CHACHA20]:EECDH+aRSA+AESGCM+AES256:EECDH+aRSA+AES128+SHA:EECDH+aRSA+AES256+SHA:RSA+AES128+SHA:RSA+AES256+SHA:RSA+3DES

OpenSSL-1.1.1-pre7 - 10_ciphers ciphers (draft 23, 26, 28, (pre9-10) - final)

[TLS13+AESGCM+AES128|TLS13+AESGCM+AES256|TLS13+CHACHA20]:[EECDH+ECDSA+AESGCM+AES128|EECDH+ECDSA+CHACHA20]:EECDH+ECDSA+AESGCM+AES256:EECDH+ECDSA+AES128+SHA:EECDH+ECDSA+AES256+SHA:[EECDH+aRSA+AESGCM+AES128|EECDH+aRSA+CHACHA20]:EECDH+aRSA+AESGCM+AES256:EECDH+aRSA+AES128+SHA:EECDH+aRSA+AES256+SHA:RSA+AES128+SHA:RSA+AES256+SHA:RSA+3DES