Stunnel “wrong version number” error with TLS-PSKInternet Explorer 8 - TLS Fatal Error Close Notify - Oracle HTTP - Server Apache 2.2.22.0TLS 1.0 handshake fails in Windows Server 2012 R2How to configure IIS 7.5 SSL TLS to work with iOS 9 ATSWhy is server FIN'ing after starting TLS session?Disabling TLS 1.0 prevents Client HELLO packetUse of SSL in ADFSTLS Error 70 issueshaproxy tls alert decrypt errorlftp 4.8.4 refuses to talk TLS1.2 with z/OS ftps hostGetting error error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure on jmeter

Layout of complex table

Singing along to guitar chords (harmony)

MH370 blackbox - is it still possible to retrieve data from it?

Swapping rooks in a 4x4 board

Pull-up sequence accumulator counter

Is my Rep in Stack-Exchange Form?

What happens when your group is victim of a surprise attack but you can't be surprised?

Why do some games show lights shine through walls?

Why does adding parentheses prevent an error?

Does the Paladin's Aura of Protection affect only either her or ONE ally in range?

Short story with brother-sister conjoined twins as protagonists?

Are there any vegetarian astronauts?

Impossible darts scores

How well known and how commonly used was Huffman coding in 1979?

How many satellites can stay in a Lagrange point?

How come I was asked by a CBP officer why I was in the US?

How can I convince my reader that I will not use a certain trope?

Going to get married soon, should I do it on Dec 31 or Jan 1?

Is there a maximum distance from a planet that a moon can orbit?

Does the posterior necessarily follow the same conditional dependence structure as the prior?

Alphabet completion rate

Intuitively, why does putting capacitors in series decrease the equivalent capacitance?

Calculating the partial sum of a expl3 sequence

What are the penalties for overstaying in USA?



Stunnel “wrong version number” error with TLS-PSK


Internet Explorer 8 - TLS Fatal Error Close Notify - Oracle HTTP - Server Apache 2.2.22.0TLS 1.0 handshake fails in Windows Server 2012 R2How to configure IIS 7.5 SSL TLS to work with iOS 9 ATSWhy is server FIN'ing after starting TLS session?Disabling TLS 1.0 prevents Client HELLO packetUse of SSL in ADFSTLS Error 70 issueshaproxy tls alert decrypt errorlftp 4.8.4 refuses to talk TLS1.2 with z/OS ftps hostGetting error error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure on jmeter






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I've got Stunnel running on a Raspberry Pi which is acting as a TLS wrapper for an apache2 server. I've configured it to use TLS-PSK (correctly, I think), but the logs show the following when I try to complete the TLS handshake:



2016.04.11 21:05:53 LOG7[0]: Service [PSK_server] started
2016.04.11 21:05:53 LOG5[0]: Service [PSK_server] accepted connection from 192.168.42.10:4097
2016.04.11 21:05:53 LOG7[0]: SSL state (accept): before/accept initialization
2016.04.11 21:05:53 LOG7[0]: SNI: no virtual services defined
2016.04.11 21:05:53 LOG7[0]: SSL alert (write): fatal: protocol version
2016.04.11 21:05:53 LOG3[0]: SSL_accept: 1408F10B: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
2016.04.11 21:05:53 LOG5[0]: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket
2016.04.11 21:05:53 LOG7[0]: Deallocating application specific data for addr index
2016.04.11 21:05:53 LOG7[0]: Local descriptor (FD=3) closed
2016.04.11 21:05:53 LOG7[0]: Service [PSK_server] finished (0 left)</code>


I've checked in Wireshark, and the packets I'm sending are all TLS 1.2.



My stunnel config file looks like this:



output = /etc/stunnel/stunnel.log
client = no
fips = no
ciphers = PSK
PSKsecrets = /home/psk.txt
debug = 7
sslVersion = TLSv1.2
[PSK_server]
accept = PSK_server
connect = 80


It sends a TLS fatal alert packet with error code 70 (which is protocol_version, so it doesn't really tell me much more than the logs)



It's weird; I can send the Client Hello message, and the server sends Server Hello and Server Hello Done with no problem. It's only when I send my Client Key Exchange message that I get the alert.
Any help/suggestions would be appreciated!










share|improve this question






























    1















    I've got Stunnel running on a Raspberry Pi which is acting as a TLS wrapper for an apache2 server. I've configured it to use TLS-PSK (correctly, I think), but the logs show the following when I try to complete the TLS handshake:



    2016.04.11 21:05:53 LOG7[0]: Service [PSK_server] started
    2016.04.11 21:05:53 LOG5[0]: Service [PSK_server] accepted connection from 192.168.42.10:4097
    2016.04.11 21:05:53 LOG7[0]: SSL state (accept): before/accept initialization
    2016.04.11 21:05:53 LOG7[0]: SNI: no virtual services defined
    2016.04.11 21:05:53 LOG7[0]: SSL alert (write): fatal: protocol version
    2016.04.11 21:05:53 LOG3[0]: SSL_accept: 1408F10B: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
    2016.04.11 21:05:53 LOG5[0]: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket
    2016.04.11 21:05:53 LOG7[0]: Deallocating application specific data for addr index
    2016.04.11 21:05:53 LOG7[0]: Local descriptor (FD=3) closed
    2016.04.11 21:05:53 LOG7[0]: Service [PSK_server] finished (0 left)</code>


    I've checked in Wireshark, and the packets I'm sending are all TLS 1.2.



    My stunnel config file looks like this:



    output = /etc/stunnel/stunnel.log
    client = no
    fips = no
    ciphers = PSK
    PSKsecrets = /home/psk.txt
    debug = 7
    sslVersion = TLSv1.2
    [PSK_server]
    accept = PSK_server
    connect = 80


    It sends a TLS fatal alert packet with error code 70 (which is protocol_version, so it doesn't really tell me much more than the logs)



    It's weird; I can send the Client Hello message, and the server sends Server Hello and Server Hello Done with no problem. It's only when I send my Client Key Exchange message that I get the alert.
    Any help/suggestions would be appreciated!










    share|improve this question


























      1












      1








      1








      I've got Stunnel running on a Raspberry Pi which is acting as a TLS wrapper for an apache2 server. I've configured it to use TLS-PSK (correctly, I think), but the logs show the following when I try to complete the TLS handshake:



      2016.04.11 21:05:53 LOG7[0]: Service [PSK_server] started
      2016.04.11 21:05:53 LOG5[0]: Service [PSK_server] accepted connection from 192.168.42.10:4097
      2016.04.11 21:05:53 LOG7[0]: SSL state (accept): before/accept initialization
      2016.04.11 21:05:53 LOG7[0]: SNI: no virtual services defined
      2016.04.11 21:05:53 LOG7[0]: SSL alert (write): fatal: protocol version
      2016.04.11 21:05:53 LOG3[0]: SSL_accept: 1408F10B: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
      2016.04.11 21:05:53 LOG5[0]: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket
      2016.04.11 21:05:53 LOG7[0]: Deallocating application specific data for addr index
      2016.04.11 21:05:53 LOG7[0]: Local descriptor (FD=3) closed
      2016.04.11 21:05:53 LOG7[0]: Service [PSK_server] finished (0 left)</code>


      I've checked in Wireshark, and the packets I'm sending are all TLS 1.2.



      My stunnel config file looks like this:



      output = /etc/stunnel/stunnel.log
      client = no
      fips = no
      ciphers = PSK
      PSKsecrets = /home/psk.txt
      debug = 7
      sslVersion = TLSv1.2
      [PSK_server]
      accept = PSK_server
      connect = 80


      It sends a TLS fatal alert packet with error code 70 (which is protocol_version, so it doesn't really tell me much more than the logs)



      It's weird; I can send the Client Hello message, and the server sends Server Hello and Server Hello Done with no problem. It's only when I send my Client Key Exchange message that I get the alert.
      Any help/suggestions would be appreciated!










      share|improve this question
















      I've got Stunnel running on a Raspberry Pi which is acting as a TLS wrapper for an apache2 server. I've configured it to use TLS-PSK (correctly, I think), but the logs show the following when I try to complete the TLS handshake:



      2016.04.11 21:05:53 LOG7[0]: Service [PSK_server] started
      2016.04.11 21:05:53 LOG5[0]: Service [PSK_server] accepted connection from 192.168.42.10:4097
      2016.04.11 21:05:53 LOG7[0]: SSL state (accept): before/accept initialization
      2016.04.11 21:05:53 LOG7[0]: SNI: no virtual services defined
      2016.04.11 21:05:53 LOG7[0]: SSL alert (write): fatal: protocol version
      2016.04.11 21:05:53 LOG3[0]: SSL_accept: 1408F10B: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
      2016.04.11 21:05:53 LOG5[0]: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket
      2016.04.11 21:05:53 LOG7[0]: Deallocating application specific data for addr index
      2016.04.11 21:05:53 LOG7[0]: Local descriptor (FD=3) closed
      2016.04.11 21:05:53 LOG7[0]: Service [PSK_server] finished (0 left)</code>


      I've checked in Wireshark, and the packets I'm sending are all TLS 1.2.



      My stunnel config file looks like this:



      output = /etc/stunnel/stunnel.log
      client = no
      fips = no
      ciphers = PSK
      PSKsecrets = /home/psk.txt
      debug = 7
      sslVersion = TLSv1.2
      [PSK_server]
      accept = PSK_server
      connect = 80


      It sends a TLS fatal alert packet with error code 70 (which is protocol_version, so it doesn't really tell me much more than the logs)



      It's weird; I can send the Client Hello message, and the server sends Server Hello and Server Hello Done with no problem. It's only when I send my Client Key Exchange message that I get the alert.
      Any help/suggestions would be appreciated!







      ssl tls stunnel






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 11 '16 at 21:29







      Alex Hunter

















      asked Apr 11 '16 at 21:22









      Alex HunterAlex Hunter

      63 bronze badges




      63 bronze badges




















          1 Answer
          1






          active

          oldest

          votes


















          0














          I would downgraded the TLS Version



          This is working for me from a raspberry pi



          options = NO_SSLv2
          options = NO_SSLv3

          CAFile = /etc/stunnel/server.crt
          cert = /etc/stunnel/server.crt
          key = /etc/stunnel/server.key
          pid = /var/run/stunnel.pid
          output = /var/log/stunnel
          verify = 4
          debug = 5

          [SERVICE]
          client = yes
          accept = 127.0.0.1:9200
          connect = SERVER.com:1111





          share|improve this answer























          • Thanks for the reply. I removed the "sslVersion = TLS1.2" line and restarted stunnel but I still get the same messages in the log, unfortunately

            – Alex Hunter
            Apr 11 '16 at 21:36













          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "2"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f769633%2fstunnel-wrong-version-number-error-with-tls-psk%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          I would downgraded the TLS Version



          This is working for me from a raspberry pi



          options = NO_SSLv2
          options = NO_SSLv3

          CAFile = /etc/stunnel/server.crt
          cert = /etc/stunnel/server.crt
          key = /etc/stunnel/server.key
          pid = /var/run/stunnel.pid
          output = /var/log/stunnel
          verify = 4
          debug = 5

          [SERVICE]
          client = yes
          accept = 127.0.0.1:9200
          connect = SERVER.com:1111





          share|improve this answer























          • Thanks for the reply. I removed the "sslVersion = TLS1.2" line and restarted stunnel but I still get the same messages in the log, unfortunately

            – Alex Hunter
            Apr 11 '16 at 21:36















          0














          I would downgraded the TLS Version



          This is working for me from a raspberry pi



          options = NO_SSLv2
          options = NO_SSLv3

          CAFile = /etc/stunnel/server.crt
          cert = /etc/stunnel/server.crt
          key = /etc/stunnel/server.key
          pid = /var/run/stunnel.pid
          output = /var/log/stunnel
          verify = 4
          debug = 5

          [SERVICE]
          client = yes
          accept = 127.0.0.1:9200
          connect = SERVER.com:1111





          share|improve this answer























          • Thanks for the reply. I removed the "sslVersion = TLS1.2" line and restarted stunnel but I still get the same messages in the log, unfortunately

            – Alex Hunter
            Apr 11 '16 at 21:36













          0












          0








          0







          I would downgraded the TLS Version



          This is working for me from a raspberry pi



          options = NO_SSLv2
          options = NO_SSLv3

          CAFile = /etc/stunnel/server.crt
          cert = /etc/stunnel/server.crt
          key = /etc/stunnel/server.key
          pid = /var/run/stunnel.pid
          output = /var/log/stunnel
          verify = 4
          debug = 5

          [SERVICE]
          client = yes
          accept = 127.0.0.1:9200
          connect = SERVER.com:1111





          share|improve this answer













          I would downgraded the TLS Version



          This is working for me from a raspberry pi



          options = NO_SSLv2
          options = NO_SSLv3

          CAFile = /etc/stunnel/server.crt
          cert = /etc/stunnel/server.crt
          key = /etc/stunnel/server.key
          pid = /var/run/stunnel.pid
          output = /var/log/stunnel
          verify = 4
          debug = 5

          [SERVICE]
          client = yes
          accept = 127.0.0.1:9200
          connect = SERVER.com:1111






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 11 '16 at 21:27









          JofreJofre

          3943 silver badges11 bronze badges




          3943 silver badges11 bronze badges












          • Thanks for the reply. I removed the "sslVersion = TLS1.2" line and restarted stunnel but I still get the same messages in the log, unfortunately

            – Alex Hunter
            Apr 11 '16 at 21:36

















          • Thanks for the reply. I removed the "sslVersion = TLS1.2" line and restarted stunnel but I still get the same messages in the log, unfortunately

            – Alex Hunter
            Apr 11 '16 at 21:36
















          Thanks for the reply. I removed the "sslVersion = TLS1.2" line and restarted stunnel but I still get the same messages in the log, unfortunately

          – Alex Hunter
          Apr 11 '16 at 21:36





          Thanks for the reply. I removed the "sslVersion = TLS1.2" line and restarted stunnel but I still get the same messages in the log, unfortunately

          – Alex Hunter
          Apr 11 '16 at 21:36

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f769633%2fstunnel-wrong-version-number-error-with-tls-psk%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

          What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

          Why did Thanos need his ship to help him in the battle scene?Which actor plays Thanos in the Avengers mid-credits scene?Are there economic implications portrayed in comics where the buildings and cities are ruined almost daily?Old X-Men comic where team travels to alien world with a ring-like sun that needs recharging?Why does Ego need help sleeping?Is there an objective answer to who “the strongest Avenger” is?How did Banner get unstuck?Why did Thanos get hit?How did Thanos (or anyone) know the Infinity Stones would give him this power?Did Thanos leave Eitri alive for his after-sales service?In Avengers 1, why does Thanos need Loki?