SUSE Support

Here When You Need Us

spacewalk-clone-by-date returns ssl.CertificateError

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


SUSE Manager 3.2


While running the below command with respective options on SUMA server, it fails with the error message:
Traceback (most recent call last):
File "/usr/bin/spacewalk-clone-by-date", line 429, in <module>
sys.exit(abs(main() or 0))
File "/usr/bin/spacewalk-clone-by-date", line 419, in main
return cloneByDate.main(args)
File "/usr/share/rhn/utils/", line 122, in main
xmlrpc = RemoteApi(options.server, options.username, options.password)
File "/usr/share/rhn/utils/", line 852, in __init__
File "/usr/share/rhn/utils/", line 865, in __login
self.auth_token = self.client.auth.login(self.username, self.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:000019669
  • 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.

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.

Open an Incident

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