Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-7033

REST endpoint to finalize enrollment after approval

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: EJBCA 6.14.0
    • Fix Version/s: EJBCA 6.14.0
    • Component/s: None
    • Labels:

      Description

      Enrollments which require approvals can currently not be finalized using the REST API. Adopt the workflow of the RA-web using requestId in order to finalize enrollments through REST.

      When a 'WaitingForApprovalException' is thrown, a link including the generated requestId should be returned to the caller in addition to the current status code and message.

      {
         statusCode: 202
         infoMessage: Waiting for approval by another administrator. Finalize enrollment using *link*
         link: https://somedomain:8443/ejbca/ejbca-rest-api/v1/certificate/{request_id}/finalize/
      }

      Additionally, a method should be created which accepts the request ID and finalizes the enrollment by returning the certificate / keystore.

        Attachments

          Activity

            People

            • Assignee:
              hsunmark Henrik Sunmark
              Reporter:
              hsunmark Henrik Sunmark
              Verified by:
              Tarmo Raudsep
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 3 days Original Estimate - 3 days
                3d
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days, 4 hours, 15 minutes
                3d 4h 15m