SUSEConnect error: Errno::ECONNRESET: Connection reset by peer - SSL_connect

This document (7018346) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 12 (SLES 12)
SUSE Linux Enterprise Server 12 Service Pack 1 (SLES 12 SP1)
SUSE Linux Enterprise Server 12 Service Pack 2 (SLES 12 SP2)

Situation

Registering a SLE 12 based server using SUSEConnect command fails with the following error messages:

   # SUSEConnect -r <registration code> -e <email address> --debug
   ...........
   opening connection to scc.suse.com:443...
   opened
   starting SSL for scc.suse.com:443...
   SSL established
   Conn close because of connect error Connection reset by peer - SSL_connect
   Output: 'sle-12-x86_64'
   SUSEConnect error: Errno::ECONNRESET: Connection reset by peer - SSL_connect
   /usr/lib64/ruby/2.1.0/net/http.rb:920:in `connect'
   /usr/lib64/ruby/2.1.0/net/http.rb:920:in `block in connect'
   /usr/lib64/ruby/2.1.0/timeout.rb:76:in `timeout'
   /usr/lib64/ruby/2.1.0/net/http.rb:920:in `connect'
   /usr/lib64/ruby/2.1.0/net/http.rb:863:in `do_start'
   /usr/lib64/ruby/2.1.0/net/http.rb:852:in `start'
   /usr/lib64/ruby/2.1.0/net/http.rb:1369:in `request'
   /usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.27/lib/suse/connect/connection.rb:60:in `json_request'
   /usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.27/lib/suse/connect/connection.rb:42:in `block (2 levels) in <class:Connection>'
   /usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.27/lib/suse/connect/api.rb:47:in `announce_system'
   /usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.27/lib/suse/connect/client.rb:48:in `announce_system'
   /usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.27/lib/suse/connect/client.rb:142:in `announce_or_update'
   /usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.27/lib/suse/connect/client.rb:26:in `register!'
   /usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.27/lib/suse/connect/cli.rb:42:in `execute!'
   /usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.27/bin/SUSEConnect:11:in `<top (required)>'
   /usr/sbin/SUSEConnect:23:in `load'
   /usr/sbin/SUSEConnect:23:in `<main>'

Resolution

Please reconfigure the firewall to whitelist the SUSE Servers "scc.suse.com:443" and "updates.suse.com:443", to allow SUSEConnect to communicate.

Cause

A firewall is blocking SSL connection establishment to "scc.suse.com:443".

Additional Information

The curl command shows the following error messages:

   # /usr/bin/curl --verbose --capath /etc/ssl/certs/ --digest --remote-time --fail
https://scc.suse.com/
   * Hostname was NOT found in DNS cache
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                    Dload  Upload   Total   Spent    Left  Speed
     0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 130.57.66.27...
   * Connected to scc.suse.com (130.57.66.27) port 443 (#0)
   * successfully set certificate verify locations:
   *   CAfile: none
     CApath: /etc/ssl/certs/
   * SSLv3, TLS handshake, Client hello (1):
   } [data not shown]
   * Unknown SSL protocol error in connection to scc.suse.com:443
     0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
   * Closing connection 0
   curl: (35) Unknown SSL protocol error in connection to scc.suse.com:443

A test using "openssl s_client -connect" command aborts with:

   # openssl s_client -connect scc.suse.com:443 -showcerts -servername scc.suse.com
   CONNECTED(00000003)
   ---
   no peer certificate available
   ---
   No client certificate CA names sent
   ---
   SSL handshake has read 0 bytes and written 282 bytes
   ---
   New, (NONE), Cipher is (NONE)
   Secure Renegotiation IS NOT supported
   Compression: NONE
   Expansion: NONE

There are no proxy setting defined in /etc/sysconfig/proxy.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7018346
  • Creation Date: 01-Dec-2016
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center