Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3682

cf-key --print-digest should show $(sys.workdir)/ppkeys/localhost.pub by default

    XMLWordPrintable

    Details

    • Type: Task
    • Status: In Review
    • Priority: (None)
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cf-key
    • Labels:
    • Story Points:
      0

      Description

      cf-key --print-digest prints the digest of a hostkey. Currently it must be passed the path
      to a key. It would be convenient if it selected $(sys.workdir)/ppkeys/localhost.pub by default.

      E.g. instead of

      As root:

       [root@hub ~]# cf-key -p /var/cfengine/ppkeys/localhost.pub 
      SHA=5e7bb08fa78719a9b33483b8600227a42e40d57f8cc1230a4ac1d1120b2dd1d9 
      
       [root@hub ~]# cf-key -p SHA=5e7bb08fa78719a9b33483b8600227a42e40d57f8cc1230a4ac1d1120b2dd1d9 ‚Äč
      

      As an unprivledged user:A

      Instead of requirng:

      [vagrant@hub ~]$ cf-key -p ~/.cfagent/ppkeys/localhost.pub
      SHA=6487cf482eee2261a7dff5d2617353ef1bb6b345294827f4ce73b6e3b555ef14
      

      Allow:

      [vagrant@hub ~]$ cf-key -p
      SHA=6487cf482eee2261a7dff5d2617353ef1bb6b345294827f4ce73b6e3b555ef14
      

        Attachments

          Activity

            People

            • Assignee:
              larsewi Lars Erik Wik
              Reporter:
              a10042 Nick Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel