spacewalk-manage-channel-lifecycle returns ssl.CertificateError

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


SUSE Manager 3.2


While running the below command  on SUMA server, it fails with error message:
Traceback (most recent call last):
File "/usr/bin/spacewalk-manage-channel-lifecycle", line 511, in <module>
session = client.auth.login(options.username, options.password)
File "/usr/lib64/python2.7/", line 1243, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.7/", line 1602, in __request
File "/usr/lib64/python2.7/", line 1283, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib64/python2.7/", line 1311, in single_request
self.send_content(h, request_body)
File "/usr/lib64/python2.7/", line 1459, in send_content
File "/usr/lib64/python2.7/", line 1078, in endheaders
File "/usr/lib64/python2.7/", line 894, in _send_output
File "/usr/lib64/python2.7/", line 856, in send
File "/usr/lib64/python2.7/", line 1303, in connect
File "/usr/lib64/python2.7/", line 369, in wrap_socket
File "/usr/lib64/python2.7/", line 617, in __init__
File "/usr/lib64/python2.7/", line 854, in do_handshake
match_hostname(self.getpeercert(), self.server_hostname)
File "/usr/lib64/python2.7/", line 292, in match_hostname
% (hostname, dnsnames[0]))
ssl.CertificateError: hostname 'server' doesn't match ''



The problem was found in source code of the command where the socket imports gethostname instead getfqdn.


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:000019670
  • Creation Date: 20-Jul-2020
  • Modified Date:23-Jul-2020
    • SUSE Manager Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]

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