Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pki --api option #4867

Merged
merged 2 commits into from
Oct 2, 2024
Merged

Add pki --api option #4867

merged 2 commits into from
Oct 2, 2024

Commits on Oct 2, 2024

  1. Add pki --api option

    The pki CLI has been updated to provide an option to specify
    the REST API version to use when communicating with the server.
    By default the CLI will use API v1, but it might change in the
    future.
    
    The PKIClient class has been modified to store the API version
    which will automatically be used by other client classes (e.g.
    InfoClient).
    
    The basic CA test has been updated to run pki info with the
    default API and API v2 and verify the access logs generated by
    these commands.
    edewata committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    71815af View commit details
    Browse the repository at this point in the history
  2. Update pki ca-cert-find for API v2

    The CertServlet.listCerts() has modified to no longer
    return the total certs found to allow future performance
    optimization. Calculating the total certs found with Simple
    Paged Results requires retrieving the full search results
    from the database so it should be avoided.
    
    The basic CA test has been updated to test pki ca-cert-find
    with the default API and API v2 then verify the access logs
    generated by these commands. The test-ca-certs.sh script is
    no longer used so it has been removed.
    edewata committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    55fbbb1 View commit details
    Browse the repository at this point in the history