maas-cli fails with default certificate

Bug #1059970 reported by Diogo Matsubara
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Raphaël Badin

Bug Description

I followed the instructions to enable ssl support in the INSTALL.txt file. https works fine but when I try to use the maas-cli I get this error:

ubuntu@lenovo-RD230-01:~$ maas-cli api login maas https://10.98.0.13/MAAS/api/1.0/ u3ZgXLk6tCrBJKv6tr:6AQQN7FzLXCNjyCYFM:x4k7jdCNW6DDfSV7vCRg2vay4zPHymZ6
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/dist-packages/maascli/__main__.py", line 18, in <module>
    main()
  File "/usr/lib/python2.7/dist-packages/maascli/__init__.py", line 84, in main
    options.execute(options)
  File "/usr/lib/python2.7/dist-packages/maascli/api.py", line 124, in __call__
    description = fetch_api_description(url)
  File "/usr/lib/python2.7/dist-packages/maascli/api.py", line 79, in fetch_api_description
    ascii_url(url_describe), "GET")
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1543, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1293, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1229, in _conn_request
    conn.connect()
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1004, in connect
    raise SSLHandshakeError(e)
httplib2.SSLHandshakeError: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

Tags: api cli

Related branches

Revision history for this message
Julian Edwards (julian-edwards) wrote :
tags: added: api cli
Changed in maas:
status: New → Triaged
importance: Undecided → Critical
Raphaël Badin (rvb)
Changed in maas:
assignee: nobody → Raphaël Badin (rvb)
status: Triaged → In Progress
Changed in maas:
status: In Progress → 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.