Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Redis configured for ssl/tls

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
ds123
n00b
n00b
Posts: 66
Joined: Mon Mar 22, 2004 10:36 pm

Redis configured for ssl/tls

  • Quote

Post by ds123 » Tue Nov 24, 2020 8:02 pm

Version 6 of redis supports TLS directly, but I am having trouble getting that to work. Their documentation emphasizes that there is a directive make BUILD_TLS=yes required.

I am trying to prove to myself that the setting BUILD_TLS is there, but I don't know enough to answer that question.

Looking in the ebuild redis-6.0.9.ebuild, nothing suggests a dependency on openssl.

When I try emerge -evp dev-db/redis, I can see that openssl is a precursor for it, so there is that.

Where should I look next?

Thanks for any help.
Top
alamahant
Advocate
Advocate
Posts: 4032
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Fri Nov 27, 2020 11:37 pm

Hi
from /etc/redis.conf

Code: Select all

# By default, TLS/SSL is disabled. To enable it, the "tls-port" configuration
# tls-port 6379
# tls-cert-file redis.crt 
# tls-key-file redis.key
# tls-dh-params-file redis.dh
# tls-ca-cert-file ca.crt
# tls-ca-cert-dir /etc/ssl/certs
# tls-auth-clients no
# tls-replication yes
# tls-cluster yes
# tls-protocols "TLSv1.2 TLSv1.3"
# tls-ciphers DEFAULT:!MEDIUM
# tls-ciphersuites TLS_CHACHA20_POLY1305_SHA256
# tls-prefer-server-ciphers yes
# tls-session-caching no
# tls-session-cache-size 5000
# tls-session-cache-timeout 60

:)
Top
Hu
Administrator
Administrator
Posts: 24380
Joined: Tue Mar 06, 2007 5:38 am

Re: Redis configured for ssl/tls

  • Quote

Post by Hu » Sat Nov 28, 2020 1:31 am

ds123 wrote:Version 6 of redis supports TLS directly, but I am having trouble getting that to work. Their documentation emphasizes that there is a directive make BUILD_TLS=yes required.
The phrasing suggests that this would be an extra parameter passed to make at build time. If you do not see it in the ebuild, then the default from upstream would be used. Your post suggests to me that the upstream default is =no.
ds123 wrote:Looking in the ebuild redis-6.0.9.ebuild, nothing suggests a dependency on openssl.
Then either the ebuild dependency data is wrong, or the ebuild does not enable TLS.
ds123 wrote:When I try emerge -evp dev-db/redis, I can see that openssl is a precursor for it, so there is that.
Are you sure? -e is short for --emptytree, so dev-libs/openssl would be shown if redis, or anything required by redis, depended on it. Hypothetically, redis could depend on a helper package that uses HTTPS, and that helper could need openssl in order to use HTTPS. That would then cause openssl to be shown in -evp output, even though redis itself made no use of openssl. The simplest test, which is not perfect, but is usually right, would be to install redis and then inspect the lddtree output for it, to see if it loads openssl, either directly or indirectly. If you do not see openssl there, then I expect it probably does not have TLS support enabled in your build.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy