Uploaded image for project: 'Puppet Agent'
  1. Puppet Agent
  2. PA-461

[Regression] PMT cannot connect to forge on Windows (cert path incorrect)

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: puppet-agent 1.6.0
    • Component/s: None
    • Labels:
    • Template:
    • Story Points:
      2

      Description

      On latest builds of puppetlabs/puppet-agent the Path to the cert is wrong:

      From hipchat:

      [2:02 PM] Ethan J. Brown: at the bottom of environment.bat @moses
      [2:02 PM] Ethan J. Brown:
      SET SSL_CERT_FILE=%PL_BASEDIR%\ssl\cert.pem
      SET SSL_CERT_DIR=%PL_BASEDIR%\ssl\certs
      [2:03 PM] Ethan J. Brown: and then in my Puppet Command Prompt, I get
      [2:03 PM] Ethan J. Brown:
      SSL_CERT_DIR=C:\Program Files\Puppet Labs\Puppet\ssl\certs
      SSL_CERT_FILE=C:\Program Files\Puppet Labs\Puppet\ssl\cert.pem
      [2:05 PM] Ethan J. Brown: simplest repro
      [2:05 PM] Ethan J. Brown:
      ruby -rnet/https -e "Net::HTTP.get URI('https://forge.puppetlabs.com')"

      Failure:

      PS C:\Users\Administrator> puppet module install puppetlabs/azure
      Notice: Preparing to install into C:/ProgramData/PuppetLabs/code/environments/production/modules ...
      Notice: Downloading from https://forgeapi.puppetlabs.com ...
      Error: Could not connect via HTTPS to https://forgeapi.puppetlabs.com
        Unable to verify the SSL certificate
          The certificate may not be signed by a valid CA
          The CA bundle included with OpenSSL may not be valid or up to date
      PS C:\Users\Administrator>
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ethan Ethan Brown
              Reporter:
              moses Moses Mendoza
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support