gnutls_handshake() failed: Error in the pull function












1















I have a problem with my Ubuntu (Ubuntu 16.04.5 LTS) server. It is very strange. When I try to use any tool for fetching a specific URL over ssl it fails. Examples:



CURL



curl -v https://www.netonnet.se/
* Trying 91.198.164.24...
* Connected to www.netonnet.se (91.198.164.24) port 443 (#0)
* found 148 certificates in /etc/ssl/certs/ca-certificates.crt
* found 596 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* gnutls_handshake() failed: Error in the pull function.
* Closing connection 0
curl: (35) gnutls_handshake() failed: Error in the pull function.


WGET



wget -v https://www.netonnet.se/
--2018-12-29 12:00:42-- https://www.netonnet.se/
Resolving www.netonnet.se (www.netonnet.se)... 91.198.164.24
Connecting to www.netonnet.se (www.netonnet.se)|91.198.164.24|:443... connected.
Unable to establish SSL connection


Any other way I try to access this website also fails so it must be something deeper, these requests are successful on all other servers I tried it on. It affects all users on this sever. I don't use any proxys on this server. How do I debug this?



EDIT



This is what I get when I try openssl. There seems to be something wrong with fetching the certificate from the host.



# openssl s_client  -servername www.netonnet.se -connect www.netonnet.se:443
CONNECTED(00000003)
write:errno=104
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 317 bytes
Verification: OK
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
Protocol : TLSv1.3
Cipher : 0000
Session-ID:
Session-ID-ctx:
Resumption PSK:
PSK identity: None
PSK identity hint: None
SRP username: None
Start Time: 1546109807
Timeout : 7200 (sec)
Verify return code: 0 (ok)
Extended master secret: no
Max Early Data: 0
---









share|improve this question





























    1















    I have a problem with my Ubuntu (Ubuntu 16.04.5 LTS) server. It is very strange. When I try to use any tool for fetching a specific URL over ssl it fails. Examples:



    CURL



    curl -v https://www.netonnet.se/
    * Trying 91.198.164.24...
    * Connected to www.netonnet.se (91.198.164.24) port 443 (#0)
    * found 148 certificates in /etc/ssl/certs/ca-certificates.crt
    * found 596 certificates in /etc/ssl/certs
    * ALPN, offering http/1.1
    * gnutls_handshake() failed: Error in the pull function.
    * Closing connection 0
    curl: (35) gnutls_handshake() failed: Error in the pull function.


    WGET



    wget -v https://www.netonnet.se/
    --2018-12-29 12:00:42-- https://www.netonnet.se/
    Resolving www.netonnet.se (www.netonnet.se)... 91.198.164.24
    Connecting to www.netonnet.se (www.netonnet.se)|91.198.164.24|:443... connected.
    Unable to establish SSL connection


    Any other way I try to access this website also fails so it must be something deeper, these requests are successful on all other servers I tried it on. It affects all users on this sever. I don't use any proxys on this server. How do I debug this?



    EDIT



    This is what I get when I try openssl. There seems to be something wrong with fetching the certificate from the host.



    # openssl s_client  -servername www.netonnet.se -connect www.netonnet.se:443
    CONNECTED(00000003)
    write:errno=104
    ---
    no peer certificate available
    ---
    No client certificate CA names sent
    ---
    SSL handshake has read 0 bytes and written 317 bytes
    Verification: OK
    ---
    New, (NONE), Cipher is (NONE)
    Secure Renegotiation IS NOT supported
    Compression: NONE
    Expansion: NONE
    No ALPN negotiated
    SSL-Session:
    Protocol : TLSv1.3
    Cipher : 0000
    Session-ID:
    Session-ID-ctx:
    Resumption PSK:
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    Start Time: 1546109807
    Timeout : 7200 (sec)
    Verify return code: 0 (ok)
    Extended master secret: no
    Max Early Data: 0
    ---









    share|improve this question



























      1












      1








      1








      I have a problem with my Ubuntu (Ubuntu 16.04.5 LTS) server. It is very strange. When I try to use any tool for fetching a specific URL over ssl it fails. Examples:



      CURL



      curl -v https://www.netonnet.se/
      * Trying 91.198.164.24...
      * Connected to www.netonnet.se (91.198.164.24) port 443 (#0)
      * found 148 certificates in /etc/ssl/certs/ca-certificates.crt
      * found 596 certificates in /etc/ssl/certs
      * ALPN, offering http/1.1
      * gnutls_handshake() failed: Error in the pull function.
      * Closing connection 0
      curl: (35) gnutls_handshake() failed: Error in the pull function.


      WGET



      wget -v https://www.netonnet.se/
      --2018-12-29 12:00:42-- https://www.netonnet.se/
      Resolving www.netonnet.se (www.netonnet.se)... 91.198.164.24
      Connecting to www.netonnet.se (www.netonnet.se)|91.198.164.24|:443... connected.
      Unable to establish SSL connection


      Any other way I try to access this website also fails so it must be something deeper, these requests are successful on all other servers I tried it on. It affects all users on this sever. I don't use any proxys on this server. How do I debug this?



      EDIT



      This is what I get when I try openssl. There seems to be something wrong with fetching the certificate from the host.



      # openssl s_client  -servername www.netonnet.se -connect www.netonnet.se:443
      CONNECTED(00000003)
      write:errno=104
      ---
      no peer certificate available
      ---
      No client certificate CA names sent
      ---
      SSL handshake has read 0 bytes and written 317 bytes
      Verification: OK
      ---
      New, (NONE), Cipher is (NONE)
      Secure Renegotiation IS NOT supported
      Compression: NONE
      Expansion: NONE
      No ALPN negotiated
      SSL-Session:
      Protocol : TLSv1.3
      Cipher : 0000
      Session-ID:
      Session-ID-ctx:
      Resumption PSK:
      PSK identity: None
      PSK identity hint: None
      SRP username: None
      Start Time: 1546109807
      Timeout : 7200 (sec)
      Verify return code: 0 (ok)
      Extended master secret: no
      Max Early Data: 0
      ---









      share|improve this question
















      I have a problem with my Ubuntu (Ubuntu 16.04.5 LTS) server. It is very strange. When I try to use any tool for fetching a specific URL over ssl it fails. Examples:



      CURL



      curl -v https://www.netonnet.se/
      * Trying 91.198.164.24...
      * Connected to www.netonnet.se (91.198.164.24) port 443 (#0)
      * found 148 certificates in /etc/ssl/certs/ca-certificates.crt
      * found 596 certificates in /etc/ssl/certs
      * ALPN, offering http/1.1
      * gnutls_handshake() failed: Error in the pull function.
      * Closing connection 0
      curl: (35) gnutls_handshake() failed: Error in the pull function.


      WGET



      wget -v https://www.netonnet.se/
      --2018-12-29 12:00:42-- https://www.netonnet.se/
      Resolving www.netonnet.se (www.netonnet.se)... 91.198.164.24
      Connecting to www.netonnet.se (www.netonnet.se)|91.198.164.24|:443... connected.
      Unable to establish SSL connection


      Any other way I try to access this website also fails so it must be something deeper, these requests are successful on all other servers I tried it on. It affects all users on this sever. I don't use any proxys on this server. How do I debug this?



      EDIT



      This is what I get when I try openssl. There seems to be something wrong with fetching the certificate from the host.



      # openssl s_client  -servername www.netonnet.se -connect www.netonnet.se:443
      CONNECTED(00000003)
      write:errno=104
      ---
      no peer certificate available
      ---
      No client certificate CA names sent
      ---
      SSL handshake has read 0 bytes and written 317 bytes
      Verification: OK
      ---
      New, (NONE), Cipher is (NONE)
      Secure Renegotiation IS NOT supported
      Compression: NONE
      Expansion: NONE
      No ALPN negotiated
      SSL-Session:
      Protocol : TLSv1.3
      Cipher : 0000
      Session-ID:
      Session-ID-ctx:
      Resumption PSK:
      PSK identity: None
      PSK identity hint: None
      SRP username: None
      Start Time: 1546109807
      Timeout : 7200 (sec)
      Verify return code: 0 (ok)
      Extended master secret: no
      Max Early Data: 0
      ---






      ubuntu wget curl gnutls






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 29 '18 at 18:58







      joscul

















      asked Dec 29 '18 at 11:04









      josculjoscul

      63




      63






















          1 Answer
          1






          active

          oldest

          votes


















          0














          After some analysis I have come to the conclusion that the reason must be one of:




          1. That host has blocked my IP from opening connections on port 443.

          2. Some kind of firewall has blocked me from opening connections on port 443.


          I solved it by using another server.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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%2fsuperuser.com%2fquestions%2f1388708%2fgnutls-handshake-failed-error-in-the-pull-function%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














            After some analysis I have come to the conclusion that the reason must be one of:




            1. That host has blocked my IP from opening connections on port 443.

            2. Some kind of firewall has blocked me from opening connections on port 443.


            I solved it by using another server.






            share|improve this answer




























              0














              After some analysis I have come to the conclusion that the reason must be one of:




              1. That host has blocked my IP from opening connections on port 443.

              2. Some kind of firewall has blocked me from opening connections on port 443.


              I solved it by using another server.






              share|improve this answer


























                0












                0








                0







                After some analysis I have come to the conclusion that the reason must be one of:




                1. That host has blocked my IP from opening connections on port 443.

                2. Some kind of firewall has blocked me from opening connections on port 443.


                I solved it by using another server.






                share|improve this answer













                After some analysis I have come to the conclusion that the reason must be one of:




                1. That host has blocked my IP from opening connections on port 443.

                2. Some kind of firewall has blocked me from opening connections on port 443.


                I solved it by using another server.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 30 '18 at 12:57









                josculjoscul

                63




                63






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • 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%2fsuperuser.com%2fquestions%2f1388708%2fgnutls-handshake-failed-error-in-the-pull-function%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

                    flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                    Mangá

                    Eduardo VII do Reino Unido