← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1603830] Re: Azure data source cannot generate public ssh key

 

Modern supported "EL" derivatives appear to have this flag (tested on
centos8-stream and centos9-stream).

If this is believed to still be an issue, please reopen.


** Changed in: cloud-init
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1603830

Title:
  Azure data source cannot generate public ssh key

Status in cloud-init:
  Fix Released

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1603830/+subscriptions



References