Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    TLSv1 Issues and Cipher Suggestion for site that perform transaction please. Mixed Content Issue as well.

    Scheduled Pinned Locked Moved Cache/Proxy
    13 Posts 4 Posters 910 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      wakson005
      last edited by

      #TLSv1 Issues and Cipher Suggestion for site that perform transaction please. Mixed Content Issue as well. ()

      Hello All,

      Been digging for multiple days but not sure what I am doing wrong when adding the cipher to HAProxy FrontEnd under Advance SSL Options in PFSense.
      Advance SSL Options.png

      What got me going on this is resolving the following issue in the Protocol from whynopadlock.com
      TLSv1 Issues.JPG

      I suspect my default is TLSv1 so I went to the following site to grab the following cipher (not sure if it is the best):
      ssl-config.mozilla.org

      ssl-min-ver TLSv1.2, ssl-max-ver TLSv1.2

      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:DHE+RSA+CHACHA20+POLY1305

      I really don't know how to format it and input this. When I add the above I get the following error (I do have a IP and PORT just removed it as I don't want to post that lol.):

      Errors found while starting haproxy
      [ALERT] 142/235237 (75838) : parsing [/var/etc/haproxy_test/haproxy.cfg:29] : 'bind XXX.XXX.XXX.XXX:PORT' unknown keyword '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:DHE-RSA-CHACHA20-POLY1305'. Registered keywords :
      [ SSL] allow-0rtt
      [ SSL] alpn <arg>
      [ SSL] ca-file <arg>
      [ SSL] ca-ignore-err <arg>
      [ SSL] ca-sign-file <arg>
      [ SSL] ca-sign-pass <arg>
      [ SSL] ciphers <arg>
      [ SSL] ciphersuites <arg>
      [ SSL] crl-file <arg>
      [ SSL] crt <arg>
      [ SSL] crt-ignore-err <arg>
      [ SSL] crt-list <arg>
      [ SSL] curves <arg>
      [ SSL] ecdhe <arg>
      [ SSL] force-sslv3
      [ SSL] force-tlsv10
      [ SSL] force-tlsv11
      [ SSL] force-tlsv12
      [ SSL] force-tlsv13
      [ SSL] generate-certificates
      [ SSL] no-ca-names
      [ SSL] no-sslv3
      [ SSL] no-tlsv10
      [ SSL] no-tlsv11
      [ SSL] no-tlsv12
      [ SSL] no-tlsv13
      [ SSL] no-tls-tickets
      [ SSL] ssl
      [ SSL] ssl-min-ver <arg>
      [ SSL] ssl-max-ver <arg>
      [ SSL] strict-sni
      [ SSL] tls-ticket-keys <arg>
      [ SSL] verify <arg>
      [ SSL] npn <arg>
      [ SSL] prefer-client-ciphers
      [STAT] level <arg>
      [STAT] expose-fd <arg>
      [STAT] severity-output <arg>
      [ TCP] mss <arg>
      [ TCP] tfo
      [ TCP] transparent
      [ TCP] v4v6
      [ TCP] v6only
      [ TCP] defer-accept (not supported)
      [ TCP] interface <arg> (not supported)
      [ ALL] accept-netscaler-cip <arg>
      [ ALL] accept-proxy
      [ ALL] backlog <arg>
      [ ALL] id <arg>
      [ ALL] maxconn <arg>
      [ ALL] name <arg>
      [ ALL] nice <arg>
      [ ALL] process <arg>
      [UNIX] gid <arg>
      [UNIX] group <arg>
      [UNIX] mode <arg>
      [UNIX] uid <arg>
      [UNIX] user <arg>
      [ALERT] 142/235237 (75838) : Error(s) found in configuration file : /var/etc/haproxy_test/haproxy.cfg
      [ALERT] 142/235237 (75838) : Fatal errors found in configuration.
      
      

      Separate issue is Mixed Content partially fixed for images, css, etc by adding a set header in backend. But the "action" forms still having issue. Not sure if I need a SSL for my Backend if my frontend already have a SSL with SSL offloading. It seem the set header update the http and change it to https or something so site is loading with images and css but my FORMs are having issues.
      Mixed Content2.JPG
      Let me know if anyone have any suggestion as the site is being host on port 80 internally and ssl offload to frontend with SSL.

      V johnpozJ 2 Replies Last reply Reply Quote 0
      • V
        viragomann @wakson005
        last edited by

        @wakson005
        I have this in my global advanced settings, not in the frontend:

        ssl-default-bind-ciphers  ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK
        ssl-default-bind-ciphersuites TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256
        ssl-default-bind-options no-sslv3 no-tlsv10 no-tlsv11 no-tls-tickets
        tune.ssl.maxrecord 1370
        

        It does TLS 1.3 if the client supports it, but requires at least 1.2.

        Regarding the mixed mode issue, did you configure an http to https redirecting in the frontend?

        1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator @wakson005
          last edited by

          @wakson005 yeah as @viragomann points out if you have some link inside your form that your hitting via https that points to http that is a problem with the code and not really a haproxy thing.

          I use these settings in my haproxy

          ssl-default-bind-ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES256-GCM-SHA384
          ssl-default-bind-ciphersuites TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256
          ssl-default-bind-options prefer-client-ciphers ssl-min-ver TLSv1.2 no-tls-tickets
          ssl-default-server-ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES256-GCM-SHA384
          ssl-default-server-ciphersuites TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256
          ssl-default-server-options ssl-min-ver TLSv1.2 no-tls-tickets
          
          

          And have set to Intermediate for compatibility mode - modern was giving me a less than perfect A+ score on the qualys test https://www.ssllabs.com/ssltest/

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          V 1 Reply Last reply Reply Quote 0
          • V
            viragomann @johnpoz
            last edited by

            @johnpoz said in TLSv1 Issues and Cipher Suggestion for site that perform transaction please. Mixed Content Issue as well.:

            modern was giving me a less than perfect A+ score on the qualys test https://www.ssllabs.com/ssltest/

            I got the + not until additionally activating HSTS as far as I remember.

            johnpozJ 1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator @viragomann
              last edited by johnpoz

              @viragomann yeah had that - was driving me nuts for the longest time.. but if you disable 1.2 which is what modern does you can not get an A+

              So for example here is current

              current.jpg

              If I change to modern.. And change my min settings to 1.3 only I only get an A ;)

              13jpg.jpg

              I should prob just leave 1.3 as min only - but like to see the A+ heheh yeah I have hsts set, that was the first thing I looked at when not getting A+, seems to be a bug in their scoring if you ask me

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              V GertjanG 2 Replies Last reply Reply Quote 0
              • V
                viragomann @johnpoz
                last edited by

                @johnpoz said in TLSv1 Issues and Cipher Suggestion for site that perform transaction please. Mixed Content Issue as well.:

                but if you disable 1.2 which is what modern does you can not get an A+

                Didn't try that. It's not an option for me.

                But hey, 4 x 100%! I only got 90 for key exchange and cipher strength.
                I consider to take over your cipher settings. 😊 :-)

                johnpozJ 1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator @viragomann
                  last edited by

                  @viragomann hmmm - I did change them to get the 100, because yeah the 90 bugged me as well.. I just don't recall exactly what I changed.. But pretty sure I grabbed these setting from some site like you linked too - not sure if was that specific one or not.

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

                  W 1 Reply Last reply Reply Quote 0
                  • W
                    wakson005 @johnpoz
                    last edited by wakson005

                    @viragomann @johnpoz

                    Thanks really appreciate the great reply! It is almost weekend and finally have some time to review the content you guys posted.

                    Really love that A+ rating too lol definitely need to look where to place that global setting instead of every single frontend lol.

                    • I just setup a Force HTTPs redirect on my frontend now. That fixed some padlock issues and let the site display properly on IE, Firefox, & Opera. For some reason google never complain even without force HTTPs.

                    • Looking into where to place that global setting for the ciphers. Can't seem to find that screen is it only in PFSense+ version (currently using community edition) or different HAProxy package release?
                      haproxy package.JPG

                    • Also the "SSL/TLS Compability Mode" I don't seem to see it for some reason in my settings maybe I'm not in the right screen?
                      I see this under tuning...
                      tuning location2.JPG
                      scrolling down:
                      Max SSL Diffie-Hellman size.JPG

                    Now that i think about it my HSTS maybe the issue? Only see HSTS on my HAPproxy >> Backend.
                    HSTS.JPG

                    1 Reply Last reply Reply Quote 0
                    • W
                      wakson005
                      last edited by

                      I think this is the global setting as it wasn't too obvious to me:
                      Input global setting here:
                      c67c1ffd-7272-4fd7-84d6-cfbebf1e6ee0-image.png

                      will output this later on:
                      cae3359e-e593-417f-8ab3-f26d0e5bb207-image.png

                      1 Reply Last reply Reply Quote 0
                      • W
                        wakson005
                        last edited by

                        Got it to A at least now :)
                        a13c7fb0-9ae9-46bc-87e5-e07d75e68ddc-image.png
                        Seem missing A+ because of the Key Exchange. Do you guys know how to change that?
                        ee50afad-2eab-4f06-b7b7-3ca5dc71c5d4-image.png

                        I set my private key to RSA 4096 but I assume the exchange key is a different key probably set elsewhere?
                        9b49d23d-0b26-4839-948f-f2bffb356114-image.png a14e0f3b-a28b-4ddc-94bb-433176bf32fd-image.png
                        beabade1-bb37-4e7e-9ff6-1db15b326fa3-image.png

                        1 Reply Last reply Reply Quote 0
                        • GertjanG
                          Gertjan @johnpoz
                          last edited by

                          @johnpoz said in TLSv1 Issues and Cipher Suggestion for site that perform transaction please. Mixed Content Issue as well.:

                          I should prob just leave 1.3 as min only - but like to see the A+

                          https://www.ssllabs.com/ssltest/analyze.html?d=test%2ddomaine.fr&s=5.196.43.182&latest

                          Not full green bars, accepting 1.3 and 1.2, still A+
                          I guess full green bars is suspect, so you get capt ;)

                          No "help me" PM's please. Use the forum, the community will thank you.
                          Edit : and where are the logs ??

                          W 1 Reply Last reply Reply Quote 0
                          • W
                            wakson005 @Gertjan
                            last edited by wakson005

                            @Gertjan If it is for personal use only 1.3 is fine but if the site is a hosting site removing 1.2 will block lots of people from accessing the site. Which is clearly a separate issue and a case by case usage of the site.

                            Where do you change the setting in pfsense/haproxy to get a RSA 4096 key exchange?

                            1 Reply Last reply Reply Quote 0
                            • W
                              wakson005
                              last edited by wakson005

                              Thanks everyone this is perfectly resolved and I am now getting A+.

                              I suspect the mixed content for the form is coming from the backend not having SSL enable so the content is transfer unencrypted internally only. Which can easily be fixed by encrypting all internal servers. Hopefully this is the case as the app is modern and created within last year and has both http and https capabilities but as the internal server is a test server running on http it is complaining as it is only accepting http as no SSL is setup yet. Probably need to set that up too eventhough it is just for internal usage and testing purpose.

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.