Uploaded image for project: 'Puppet Server'
  1. Puppet Server
  2. SERVER-2795

Error deleting CSR request through HTTP API

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: SERVER 6.13.0, SERVER 5.3.15
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      Froyo
    • Method Found:
      Customer Feedback
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Re-enabled the ability to delete certificate signing requests via the CA API.
    • QA Risk Assessment:
      Needs Assessment

      Description

      I can get the CSR information through the API from client

      curl -X GET \

        --tlsv1 \

        -H "Accept: application/json" \

        --cacert /etc/puppetlabs/puppet/ssl/certs/ca.pem \

        https://$PUPMASTER:8140/puppet-ca/v1/certificate_request/$CERTNAME

       

      Response:

      ----BEGIN CERTIFICATE REQUEST----

      MIIEbDCCAlQCAQAwJzElMCMGA1UEAwwcMDgwMDI3MDkwNWNlLmtpb3NrLnRwYi5s

      b2NhbDCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAOBphK7YTkSjn01X

      VYPdsszYDWCqzo97+DbCNY1/UTvPNMJ066IMjZj5So3GBqCkL1OR97pMxQc0XfJQ

      0RfUh6fyct6w2ngl8tqul/dlKhPbF1Sol9/voMrGpSWJJEGpuCu5qW+JO6XQrHET

      VkFAbmejef/9jHIPE82ZYRIWLM+jBnpV+8wnU0BN+myIN4ZnR2D+xU3KjU2T7k/h

      4IsHKh3j6lgmn5U/CTuaLU5AwxXItkDdJWNLNY9qfjAdEiQHcd6KMyprTd8ZZEoX

      DBNKm7AB1QL0+CLthUcoxpJyAiPId3+IUdMgqPVyET7/hxYUNhL42COQ0E/m0zJC

       

      But i can't delete this CSR 

      curl -X DELETE \

        --tlsv1 \

        -H "Accept: application/json" \

        --cacert /etc/puppetlabs/puppet/ssl/certs/ca.pem \

        https://$PUPMASTER:8140/puppet-ca/v1/certificate_request/$CERTNAME

      Response:

      NOT FOUND.

      Can you help me with this?

       

      Puppet Version: 5.5
      Puppet Server Version: 5.5
      OS Name/Version: Ubuntu

       

        Attachments

          Activity

            People

            Assignee:
            maggie Maggie Dreyer
            Reporter:
            lchavez89 leo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support