When fetching the script attachment, the client isn't honoring ssl_public_key

Bug #959846 reported by Andreas Hasenack
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Client
Fix Released
High
Thomas Herve

Bug Description

The client has this:

[client]
script_users = ALL
log_level = debug
url = https://ec2-184-73-147-11.compute-1.amazonaws.com/message-system
computer_title = ec2-174-129-92-156.compute-1.amazonaws.com
data_path = /var/lib/landscape/client
registration_password = foo
ping_url = http://ec2-184-73-147-11.compute-1.amazonaws.com/ping
include_manager_plugins = ScriptExecution
ssl_public_key = /etc/ssl/certs/landscape_server_ca.crt
account_name = standalone

exchange_interval = 30
ping_interval = 10
urgent_exchange_interval = 10

But when sending a script with an attachment to it, it failed:
[Failure instance: Traceback: <class 'landscape.lib.fetch.PyCurlError'>: Error 60: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
/usr/lib/python2.6/dist-packages/twisted/internet/defer.py:307:errback
/usr/lib/python2.6/dist-packages/twisted/internet/defer.py:354:_startRunCallbacks
/usr/lib/python2.6/dist-packages/twisted/internet/defer.py:371:_runCallbacks
/usr/lib/python2.6/dist-packages/twisted/internet/defer.py:879:gotResult
--- <exception caught here> ---
/usr/lib/python2.6/dist-packages/twisted/internet/defer.py:821:_inlineCallbacks
/usr/lib/python2.6/dist-packages/twisted/python/failure.py:338:throwExceptionIntoGenerator
/usr/lib/python2.6/dist-packages/landscape/manager/scriptexecution.py:221:_save_attachments
/usr/lib/python2.6/dist-packages/twisted/python/threadpool.py:210:_worker
/usr/lib/python2.6/dist-packages/twisted/python/context.py:59:callWithContext
/usr/lib/python2.6/dist-packages/twisted/python/context.py:37:callWithContext
/usr/lib/python2.6/dist-packages/landscape/lib/fetch.py:98:fetch
]

The script was the sample data "print 'OK!'" one, in python (script id 2).

Changed in landscape:
importance: High → Low
importance: Low → High
Thomas Herve (therve)
affects: landscape → landscape-client
Changed in landscape-client:
milestone: 12.03.2 → none
milestone: none → 12.03.2
assignee: nobody → Thomas Herve (therve)
Thomas Herve (therve)
visibility: private → public
Changed in landscape-client:
status: New → In Progress
tags: added: points-1 squad-gamma
Thomas Herve (therve)
Changed in landscape-client:
status: In Progress → Fix Committed
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Released into precise as 12.04.1-0ubuntu1

Changed in landscape-client:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.