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.

Environment

SUSE Manager 3.2

Situation

While running the below command with respective options on SUMA server, it fails with the error message:
spacewalk-clone-by-date
 
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/cloneByDate.py", line 122, in main
xmlrpc = RemoteApi(options.server, options.username, options.password)
File "/usr/share/rhn/utils/cloneByDate.py", line 852, in __init__
self.__login()
File "/usr/share/rhn/utils/cloneByDate.py", line 865, in __login
self.auth_token = self.client.auth.login(self.username, self.password)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1243, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1602, in __request
verbose=self.__verbose
File "/usr/lib64/python2.7/xmlrpclib.py", line 1283, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1311, in single_request
self.send_content(h, request_body)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1459, in send_content
connection.endheaders(request_body)
File "/usr/lib64/python2.7/httplib.py", line 1078, in endheaders
self._send_output(message_body)
File "/usr/lib64/python2.7/httplib.py", line 894, in _send_output
self.send(msg)
File "/usr/lib64/python2.7/httplib.py", line 856, in send
self.connect()
File "/usr/lib64/python2.7/httplib.py", line 1303, in connect
server_hostname=server_hostname)
File "/usr/lib64/python2.7/ssl.py", line 369, in wrap_socket
_context=self)
File "/usr/lib64/python2.7/ssl.py", line 617, in __init__
self.do_handshake()
File "/usr/lib64/python2.7/ssl.py", line 854, in do_handshake
match_hostname(self.getpeercert(), self.server_hostname)
File "/usr/lib64/python2.7/ssl.py", line 292, in match_hostname
% (hostname, dnsnames[0]))
ssl.CertificateError: hostname 'server' doesn't match 'server.suse.com'
 

Resolution

Cause

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

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: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.com

tick icon

SUSE Support Forums

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

tick icon

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.

tick icon

Open an Incident

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