PKI CA List Certificate Request Templates REST API - dogtagpki/pki GitHub Wiki

Request

  • Path: /ca/rest/certrequests/profiles

  • Method: GET

  • Query Parameters:

    • start: integer

    • size: integer

  • Content: None

Example

JSON
$ curl \
    -k \
    -s \
    -H "Accept: application/json" \
    https://localhost.localdomain:8443/ca/rest/certrequests/profiles | python -m json.tool
{
    "total": 34,
    "entries": [
        {
            "profileURL": "https://localhost.localdomain:8443/ca/rest/profiles/acmeServerCert",
            "profileId": "acmeServerCert",
            "profileName": "ACME Server Certificate Enrollment",
            "profileDescription": "This certificate profile is for enrolling server certificates via ACME protocol."
        },
        ...
    ],
    "Link": [
        {
            "rel": "next",
            "href": "https://localhost.localdomain:8443/ca/rest/certrequests/profiles?start=20",
            "type": "application/xml"
        }
    ]
}
XML
$ curl \
    -k \
    -s \
    -H "Accept: application/xml" \
    https://localhost.localdomain:8443/ca/rest/certrequests/profiles | xmllint --format -
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ProfileDataInfos>
  <entries xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="profileDataInfo">
    <profileURL>https://localhost.localdomain:8443/ca/rest/profiles/acmeServerCert</profileURL>
    <profileId>acmeServerCert</profileId>
    <profileName>ACME Server Certificate Enrollment</profileName>
    <profileDescription>This certificate profile is for enrolling server certificates via ACME protocol.</profileDescription>
  </entries>
  ...
  <Link href="https://localhost.localdomain:8443/ca/rest/certrequests/profiles?start=20" rel="next" type="application/xml"/>
  <total>34</total>
  <ProfileDataInfo>
    <profileURL>https://localhost.localdomain:8443/ca/rest/profiles/caStorageCert</profileURL>
    <profileId>caStorageCert</profileId>
    <profileName>Manual Data Recovery Manager Storage Certificate Enrollment</profileName>
    <profileDescription>This certificate profile is for enrolling Data Recovery Manager storage certificates.</profileDescription>
  </ProfileDataInfo>
  ...
</ProfileDataInfos>
⚠️ **GitHub.com Fallback** ⚠️