Get Certificate Chain
GET /object-cert/keystore
Gets the certificate chain currently used. The data returned will contain all of the certificates in the
current certificate chain encoded in PEM format.
Required Roles
Requires one of the following roles:
SECURITY_ADMIN
SYSTEM_ADMIN
Response Body
Certificate chain details to be used.
Field
Description
Type
Notes
certificate_chain
chain
Keystore certificate chain in PEM format
String
Examples
XML Example
JSON Example
curl Example
Request
GET https://192.168.0.0:4443/object-cert/keystore HTTP/1.1
Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<certificate_chain>
<chain>-----BEGIN CERTIFICATE-----
MIIDCDCCAfCgAwIBAgIICyp+EVCTPAwwDQYJKoZIhvcNAQELBQAwFjEUMBIGA1UE
AxMLRGF0YVNlcnZpY2UwHhcNMTUwMjI1MDM1NzE2WhcNMjUwMjIyMDM1NzE2WjAW
MRQwEgYDVQQDEwtEYXRhU2VydmljZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC
AQoCggEBAKWPajocJQR+oT4JjUTjJStWLh52lFQkUH0yOUrio4GmWAugBWOivNkb
XOfMRG5g56DuYWMToH4BRnz9bjFmYAO2/ZuutBzVgRGAtrD1Fv9WDl3ZkZeC813X
yTkCxaik+CKBr8hae8P3XH0AzpUcY+ls/msWZgiItTDACnKULNWVI9w9akKjTM9e
Y2etG5c3r/37CJokMh2pBZAnS3cJKmzWc98dqxLun74pi43kNOjz8oybjTfav0EW
NFRASngJT+sHmKasX5QD5p3x2I0layV6b0fR0WWbHcg6av8VkicjFWnuyPFlkr7j
/5F71zZ8u3VDL7KdK6WSPpsL2GxdW6UCAwEAAaNaMFgwHwYDVR0jBBgwFoAUGw2z
BFpglBs/yR4efJVndgWJltYwFgYDVR0RBA8wDYIFdmlwcjGHBAr3s+4wHQYDVR0O
BBYEFBsNswRaYJQbP8keHnyVZ3YFiZbWMA0GCSqGSIb3DQEBCwUAA4IBAQApBtos
sAdBxlXZXSOejbvRq5g5KjzxkwsrNPFCWOs/4KL7dR41GvkHRvxe6Uxc1cgWhrJH
WXPVlvkadZqSle3Dt7+8MolXQU+ScS8wKUu8wV5HdFb3FDRdROQvTQoUB9AAHUOt
8BXwRNCvFby4NubrlsoFEGN/K/96ecF7N5Nnj/9BydkjPQniLt/SfToPKUjrqXvQ
MJmuXySwKh2j39w+G1fP2IqnwhPgtsb8nZuPDIrzt+nUvNttFPiP7QRaiIaHR8ni
WRhCVyEoYvgUtU/8iIvPx0AdW1PbigVvXckg5DvyrnTjIVQ18oM4yVpc1ACEeUiJ
p9L2ulXuACkiAUJ0
-----END CERTIFICATE-----</chain>
</certificate_chain>
Request
GET https://192.168.0.0:4443/object-cert/keystore.json HTTP/1.1
Content-Type: application/jsonX-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OKContent-Type: application/json{ "chain": "-----BEGIN CERTIFICATE-----\nMIIDCDCCAfCgAwIBAgIICyp+EVCTPAwwDQYJKoZIhvcNAQELBQAwFjEUMBIGA1UE\r\nAxMLRGF0YVNlcnZpY2UwHhcNMTUwMjI1MDM1NzE2WhcNMjUwMjIyMDM1NzE2WjAW\r\nMRQwEgYDVQQDEwtEYXRhU2VydmljZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC\r\nAQoCggEBAKWPajocJQR+oT4JjUTjJStWLh52lFQkUH0yOUrio4GmWAugBWOivNkb\r\nXOfMRG5g56DuYWMToH4BRnz9bjFmYAO2/ZuutBzVgRGAtrD1Fv9WDl3ZkZeC813X\r\nyTkCxaik+CKBr8hae8P3XH0AzpUcY+ls/msWZgiItTDACnKULNWVI9w9akKjTM9e\r\nY2etG5c3r/37CJokMh2pBZAnS3cJKmzWc98dqxLun74pi43kNOjz8oybjTfav0EW\r\nNFRASngJT+sHmKasX5QD5p3x2I0layV6b0fR0WWbHcg6av8VkicjFWnuyPFlkr7j\r\n/5F71zZ8u3VDL7KdK6WSPpsL2GxdW6UCAwEAAaNaMFgwHwYDVR0jBBgwFoAUGw2z\r\nBFpglBs/yR4efJVndgWJltYwFgYDVR0RBA8wDYIFdmlwcjGHBAr3s+4wHQYDVR0O\r\nBBYEFBsNswRaYJQbP8keHnyVZ3YFiZbWMA0GCSqGSIb3DQEBCwUAA4IBAQApBtos\r\nsAdBxlXZXSOejbvRq5g5KjzxkwsrNPFCWOs/4KL7dR41GvkHRvxe6Uxc1cgWhrJH\r\nWXPVlvkadZqSle3Dt7+8MolXQU+ScS8wKUu8wV5HdFb3FDRdROQvTQoUB9AAHUOt\r\n8BXwRNCvFby4NubrlsoFEGN/K/96ecF7N5Nnj/9BydkjPQniLt/SfToPKUjrqXvQ\r\nMJmuXySwKh2j39w+G1fP2IqnwhPgtsb8nZuPDIrzt+nUvNttFPiP7QRaiIaHR8ni\r\nWRhCVyEoYvgUtU/8iIvPx0AdW1PbigVvXckg5DvyrnTjIVQ18oM4yVpc1ACEeUiJ\r\np9L2ulXuACkiAUJ0\r\n-----END CERTIFICATE-----"}
Request
curl -H $token -H "Content-Type: application/xml" -X GET https://$nodeIp:4443/object-cert/keystore
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<certificate_chain>
<chain>-----BEGIN CERTIFICATE-----
MIIDCDCCAfCgAwIBAgIICyp+EVCTPAwwDQYJKoZIhvcNAQELBQAwFjEUMBIGA1UE
AxMLRGF0YVNlcnZpY2UwHhcNMTUwMjI1MDM1NzE2WhcNMjUwMjIyMDM1NzE2WjAW
MRQwEgYDVQQDEwtEYXRhU2VydmljZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC
AQoCggEBAKWPajocJQR+oT4JjUTjJStWLh52lFQkUH0yOUrio4GmWAugBWOivNkb
XOfMRG5g56DuYWMToH4BRnz9bjFmYAO2/ZuutBzVgRGAtrD1Fv9WDl3ZkZeC813X
yTkCxaik+CKBr8hae8P3XH0AzpUcY+ls/msWZgiItTDACnKULNWVI9w9akKjTM9e
Y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