Skip to content

Instantly share code, notes, and snippets.

@h-yamamo
Last active April 29, 2024 23:46
Show Gist options
  • Save h-yamamo/c087742f8ee0a39096a0bfb62a4a5abe to your computer and use it in GitHub Desktop.
Save h-yamamo/c087742f8ee0a39096a0bfb62a4a5abe to your computer and use it in GitHub Desktop.
Support TLS 1.3 Camellia-GCM for GnuTLS package

Support TLS 1.3 Camellia-GCM for debian/ubuntu (buster or later/focal or later) gnutls28 package

For private use with TLS 1.3, it's assigned the following definitions of ciphersuites for Camellia-GCM.

CAMELLIA-128-GCM:  0xff, 0xca
CAMELLIA-256-GCM:  0xff, 0xcb

And re-add TLS 1.2 Camellia-GCM to priorities ciphersuites.

How to build

  • Required packages: packaging-dev, lzip / Preparation: sudo apt-get build-dep gnutls28

Debian 10 (buster)

(# in some directory)
git clone -b buster --depth 1 https://gist.github.com/h-yamamo/c087742f8ee0a39096a0bfb62a4a5abe
apt-get -d source gnutls28
tar xf gnutls28_3.6.7.orig.tar.xz
cd gnutls-3.6.7
tar xf ../gnutls28_3.6.7-4+deb10u12.debian.tar.xz
tar xvf ../c087742f8ee0a39096a0bfb62a4a5abe/debian.tlz
(# you may edit debian/changelog and/or something others)
debuild -uc -us

Debian 11 (bullseye)

(# in some directory)
git clone -b bullseye --depth 1 https://gist.github.com/h-yamamo/c087742f8ee0a39096a0bfb62a4a5abe
apt-get -d source gnutls28
tar xf gnutls28_3.7.1.orig.tar.xz
cd gnutls-3.7.1
tar xf ../gnutls28_3.7.1-5+deb11u5.debian.tar.xz
tar xvf ../c087742f8ee0a39096a0bfb62a4a5abe/debian.tlz
(# you may edit debian/changelog and/or something others)
debuild -uc -us

Debian 12 (bookworm)

(# in some directory)
git clone -b bookworm --depth 1 https://gist.github.com/h-yamamo/c087742f8ee0a39096a0bfb62a4a5abe
apt-get -d source gnutls28
tar xf gnutls28_3.7.9.orig.tar.xz
cd gnutls-3.7.9
tar xf ../gnutls28_3.7.9-2+deb12u2.debian.tar.xz
tar xvf ../c087742f8ee0a39096a0bfb62a4a5abe/debian.tlz
(# you may edit debian/changelog and/or something others)
debuild -uc -us

Ubuntu 20.04 LTS (focal)

(# in some directory)
git clone -b focal --depth 1 https://gist.github.com/h-yamamo/c087742f8ee0a39096a0bfb62a4a5abe
apt-get -d source gnutls28
tar xf gnutls28_3.6.13.orig.tar.xz
cd gnutls-3.6.13
tar xf ../gnutls28_3.6.13-2ubuntu1.11.debian.tar.xz
tar xvf ../c087742f8ee0a39096a0bfb62a4a5abe/debian.tlz
(# you may edit debian/changelog and/or something others)
debuild -uc -us

Ubuntu 22.04 LTS (jammy)

(# in some directory)
git clone -b jammy --depth 1 https://gist.github.com/h-yamamo/c087742f8ee0a39096a0bfb62a4a5abe
apt-get -d source gnutls28
tar xf gnutls28_3.7.3.orig.tar.xz
cd gnutls-3.7.3
tar xf ../gnutls28_3.7.3-4ubuntu1.5.debian.tar.xz
tar xvf ../c087742f8ee0a39096a0bfb62a4a5abe/debian.tlz
(# you may edit debian/changelog and/or something others)
debuild -uc -us

Ubuntu 24.04 LTS (noble)

(# in some directory)
git clone -b noble --depth 1 https://gist.github.com/h-yamamo/c087742f8ee0a39096a0bfb62a4a5abe
apt-get -d source gnutls28
tar xf gnutls28_3.8.3.orig.tar.xz
cd gnutls-3.8.3
tar xf ../gnutls28_3.8.3-1.1ubuntu3.1.debian.tar.xz
tar xvf ../c087742f8ee0a39096a0bfb62a4a5abe/debian.tlz
(# you may edit debian/changelog and/or something others)
debuild -uc -us
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment