Giter Site home page Giter Site logo

openssl-1.1.0-patch's Introduction

OpenSSL-1.1.0 Patch

Update 2019.09.26

According to openssl.org, OpenSSL 1.1.0 branch no longer receives any update from Sept 11, 2019, the user should upgrade to 1.1.1 branch.

This patch will be archived from now on.

What would it do

Make the CHACHA20-POLY1305 ciphersuites the first option on those devices without AES instruction-sets.

Based on client's SSL cipher sequence.

How to use:

Apply patch for OpenSSL:

cd ~

curl -O https://www.openssl.org/source/openssl-1.1.0h.tar.gz
curl https://www.openssl.org/source/openssl-1.1.0h.tar.gz.sha256
sha256sum https://www.openssl.org/source/openssl-1.1.0h.tar.gz
## Compare the digest, check the integrity of the source code.

tar -zxvf openssl-1.1.0h.tar.gz
cd openssl-1.1.0h/

patch -p1 < ../chacha_priority.patch
## Assume the patch file is in your home directory(~)

## Assign a directory to avoid the system version of OpenSSL being covered,
## Which may leads to unexpected result.
./config --prefix={install_path} --openssldir=/etc/ssl --Wl,rpath={install_path}/lib
make -j
make install

Use with applications depend on OpenSSL:

  1. Recompile other Apps depends on OpenSSL 1.1.0, add LDFLAGS="--Wl,rpath={install_path}/lib" to use the libraries you just compiled.
  2. Use OpenSSL config command Options:+PrioritizeChaCha to enable this feature
  3. Do NOT set CHACHA ciphersuites as the first one. (Which will make chacha ALWAYS be the first alternative)

Example configuration for Apache 2.4:

SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-RSA-AES256-GCM-SHA384
SSLProtocol -All +TLSv1.2
SSLOpenSSLConfCmd Options +PrioritizeChaCha

Reference

  1. OpenSSL Source of version 1.1.0g and 1.1.1-pre4
  2. https://www.openssl.org/docs/man1.1.1/man3/SSL_CONF_cmd_value_type.html
  3. https://httpd.apache.org/docs/trunk/mod/mod_ssl.html#sslopensslconfcmd

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.