Bug 1238675 - spacewalk-create-channel: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
Summary: spacewalk-create-channel: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 2.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Dobes
QA Contact: Pavel Studeník
URL:
Whiteboard:
Depends On:
Blocks: space24
TreeView+ depends on / blocked
 
Reported: 2015-07-02 11:51 UTC by Pavel Studeník
Modified: 2015-10-08 13:26 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-10-08 13:26:12 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1237219 0 unspecified CLOSED spacewalk-clone-by-date: ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] 2021-02-22 00:41:40 UTC

Internal Links: 1237219

Description Pavel Studeník 2015-07-02 11:51:36 UTC
Description of problem:
spacewalk-create-channel doesn't work with self-signed certificate.

Version-Release number of selected component (if applicable):
spacewalk-remote-utils-2.4.2-1.fc22.noarch

How reproducible:
always

Steps to Reproduce:
1. use default self-signed certificate

Actual results:
spacewalk-create-channel  -l admin -p nimda -s localhost -D /usr/share/rhn/channel-data/5-u1-server-i386-Vt -d my_channel

You have not specified a source channel, we will try to determine it from inputs
Trying with source channel: rhel-i386-server-vt-5
Traceback (most recent call last):
  File "/usr/bin/spacewalk-create-channel", line 485, in <module>
    main()
  File "/usr/bin/spacewalk-create-channel", line 175, in main
    auth = client.auth.login(user, password)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1240, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1599, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1280, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1308, in single_request
    self.send_content(h, request_body)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1456, in send_content
    connection.endheaders(request_body)
  File "/usr/lib64/python2.7/httplib.py", line 1049, in endheaders
    self._send_output(message_body)
  File "/usr/lib64/python2.7/httplib.py", line 893, in _send_output
    self.send(msg)
  File "/usr/lib64/python2.7/httplib.py", line 855, in send
    self.connect()
  File "/usr/lib64/python2.7/httplib.py", line 1274, in connect
    server_hostname=server_hostname)
  File "/usr/lib64/python2.7/ssl.py", line 352, in wrap_socket
    _context=self)
  File "/usr/lib64/python2.7/ssl.py", line 579, in __init__
    self.do_handshake()
  File "/usr/lib64/python2.7/ssl.py", line 808, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)

Expected results:
it should work with self-signed certificate

Comment 1 Jan Dobes 2015-08-07 12:30:54 UTC
fixed in bz1237219

Comment 2 Pavel Studeník 2015-08-14 10:24:55 UTC
Verified with packages spacewalk-remote-utils-2.4.4-1.fc22.noarch
spacewalk-postgresql-2.4.2-1.fc22.noarch on Fedora 22

$ spacewalk-create-channel --user=admin  --version=6 --update=gold --release=Server --arch=x86_64 --destChannel=my-stable-channel

You have not specified a source channel, we will try to determine it from inputs
Trying with source channel: rhel-x86_64-server-6
Creating channel, my-stable-channel, with arch x86_64 3431 packages in source file to push.
Pushing 0 packages, please wait.
Successfully pushed 0 packages out of 3431

Comment 3 Jan Dobes 2015-10-08 13:26:12 UTC
Spacewalk 2.4 has been released.


Note You need to log in before you can comment on or make changes to this bug.