Get a KeyPair or list of KeyPairs

get

/oam/services/rest/ssa/api/v1/keypairadmin/keypair

Returns a KeyPair by aliasName or KeyPairs by days to expire or all the KeyPair

Request

Supported Media Types
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

Body ()
Root Schema : KeyPairArtifacts
Type: array
Show Source
Nested Schema : KeyPairArtifactObject
Type: object
KeyPair artifact details
Show Source

400 Response

Retrieval failed for NameOfKeyPair. Exception encountered during KeyPair fetch NameOfKeyPair Exception: NameOfKeyPair not found
Back to Top

Examples

cURL Sample Request 1

curl--location--request GET 'https://<admin-host>:<admin-port>/oam/services/rest/ssa/api/v1/keypairadmin/keypair?aliasName=NewDomain' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic dGVzdDp0ZXN0='

cURL Sample Response 1

[
    {
        "aliasName": "NewDomain",
        "subjectDN": "CN=BadSSL Client Certificate, O=BadSSL, L=San Francisco, ST=California, C=US",
        "issuer": "CN=BadSSL Client Root Certificate Authority, O=BadSSL, L=San Francisco, ST=California, C=US",
        "expiry": "Thu Nov 25 16:19:57 PST 2021",
        "issuedOn": "Tue Nov 26 16:19:57 PST 2019",
        "publicKeyDetails": "Sun RSA public key, 2048 bits",
        "domains": ""
    }
]

cURL Sample Request 2

curl --location --request GET 'https://<admin-host>:<admin-port>/oam/services/rest/ssa/api/v1/keypairadmin/keypair' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic dGVzdDp0ZXN0='

cURL Sample Response 2

[
    {
        "aliasName": "NewDomain1",
        "subjectDN": "EMAILADDRESS=info@acme.com, CN=testbox.acme.com, OU=TEST CA, O=acme GmbH, L=Munich, ST=Bavaria, C=DE",
        "issuer": "EMAILADDRESS=info@acme.com, CN=x.acme.com, OU=DEMO-CA, O=acme GmbH, L=Munich, ST=Bavaria, C=DE",
        "expiry": "Fri Oct 21 04:08:42 PDT 2022",
        "issuedOn": "Sun Oct 22 04:08:42 PDT 2017",
        "publicKeyDetails": "Sun RSA public key, 2048 bits",
        "domains": ""
    },
    {
        "aliasName": "NewDomain",
        "subjectDN": "CN=BadSSL Client Certificate, O=BadSSL, L=San Francisco, ST=California, C=US",
        "issuer": "CN=BadSSL Client Root Certificate Authority, O=BadSSL, L=San Francisco, ST=California, C=US",
        "expiry": "Thu Nov 25 16:19:57 PST 2021",
        "issuedOn": "Tue Nov 26 16:19:57 PST 2019",
        "publicKeyDetails": "Sun RSA public key, 2048 bits",
        "domains": "ID1"
    }
]
Back to Top