Azure data source cannot generate public ssh key

Bug #1603830 reported by Ian Duffy on 2016-07-18
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Given the following code on a EL based distribution:

def crtfile_to_pubkey(fname):
    pipeline = ('openssl x509 -noout -pubkey < "$0" |'
                'ssh-keygen -i -m PKCS8 -f /dev/stdin')
    (out, _err) = util.subp(['sh', '-c', pipeline, fname], capture=True)
    return out.rstrip()

Cloud-init is unable to generate a ssh public-key from the azure PKCS8 certificate.
The version of ssh-keygen on EL distributions does not have a -m flag.

Changed in cloud-init:
milestone: none → 0.7.7
status: New → Confirmed
Scott Moser (smoser) on 2016-07-21
Changed in cloud-init:
importance: Undecided → Medium
Scott Moser (smoser) on 2016-08-10
Changed in cloud-init:
milestone: 0.7.7 → 0.7.8
Scott Moser (smoser) on 2016-09-12
Changed in cloud-init:
milestone: 0.7.8 → 0.7.9
Scott Moser (smoser) on 2016-12-23
Changed in cloud-init:
milestone: 0.7.9 → none
milestone: none → 0.7.10
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers