• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Guides, Walkthroughs & Tutorials Apache/Nginx - Disable Weak TLS Ciphers

     
    • 0 Vote(s) - 0 Average

    Apache/Nginx - Disable Weak TLS Ciphers

    Requiring usage of cryptographically secure ciphers and prefer perfect forward secrecy
    bitmap
    Offline

    Community Moderator

    Posts: 867
    Threads: 9
    Joined: 2023 Jul
    Reputation: 29
    #6
    2023-09-14, 06:25 PM
    For anybody running LSIO swag, you can set this up by editing /swag/nginx/ssl.conf

    Comment out the following:
    Code:
    # intermediate configuration (original to swag -- backup config)
    #ssl_protocols TLSv1.2 TLSv1.3;
    #ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
    #ssl_prefer_server_ciphers off;

    And replace it with what's recommended above:
    Code:
    # disable weak TLS ciphers (may break some things)
    ssl_protocols TLSv1.3 TLSv1.2;
    ssl_ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:AES256-GCM-SHA384;
    ssl_ecdh_curve secp384r1;
    ssl_prefer_server_ciphers on;

    While you're in here, you may as well change a few things that were recommended here and are already part of this config but commented out:
    Code:
    # HSTS (ngx_http_headers_module is required) (63072000 seconds)
    #add_header Strict-Transport-Security "max-age=63072000" always;
    Which is commented out (just uncomment the second line). The ssl_session_tickets off; option already exists correctly as above in the ssl.conf so there's no need to add this in the swag config files.

    You can also change some of the other header-related items that are recommended, but I am still looking at how this affects my other offerings. I turned on:
    Code:
    add_header X-Content-Type-Options "nosniff" always;
    And that hasn't broken anything that I can tell as of yet. I was able to remove this from my Jellyfin proxy-conf file.

    I ran the SSL test again right after changing the config and got a LOT more green, but still had some issues I'm not sure are accurate. Anyway, I figured that after I tinkered and figured out how to get this working in Swag, I'd share with other folks as well. Thanks again for your help with explaining what the report meant @TheDreadPirate!
    Jellyfin 10.10.7 LSIO Docker | Ubuntu 24.04 LTS | i7-13700K | Arc A380 6 GB | 64 GB RAM | 79 TB Storage

    [Image: AIL4fc84QG6uSnTDEZiCCtosg7uAA8x9j1myFaFs...qL0Q=w2400]
    1
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Apache/Nginx - Disable Weak TLS Ciphers - by TheDreadPirate - 2023-08-22, 02:19 AM
    RE: Apache/Nginx - Disable Weak TLS Ciphers - by niels - 2023-08-22, 06:40 AM
    RE: Apache/Nginx - Disable Weak TLS Ciphers - by TheDreadPirate - 2023-08-22, 02:45 PM
    RE: Apache/Nginx - Disable Weak TLS Ciphers - by bitmap - 2023-08-23, 06:38 AM
    RE: Apache/Nginx - Disable Weak TLS Ciphers - by TheDreadPirate - 2023-08-23, 03:17 PM
    RE: Apache/Nginx - Disable Weak TLS Ciphers - by bitmap - 2023-09-14, 06:25 PM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode