GetServerCertificate#

Description#

Retrieves information about the server certificate stored in IAM.

Request Parameters#

  • ServerCertificateName — The name of the server certificate.

    • Type: String

    • Required: Yes

Response Elements#

  • ServerCertificate — Information about the server certificate.

Examples#

Request

POST https://iam.k2.cloud/
Content-type: x-www-form-urlencoded

?Action=GetServerCertificate
&ServerCertificateName=certificate-1

Response

<ServerCertificate>
    <ServerCertificateMetadata>
        <ServerCertificateName>certificate-1</ServerCertificateName>
        <ServerCertificateId>b459eb43-b876-49f7-8bf5-7fcd6680a0af</ServerCertificateId>
        <Arn>arn:c2:iam::c2dev:server-certificate/certificate-1</Arn>
        <UploadDate>1725442777</UploadDate>
        <Expiration>1725442777</Expiration>
    </ServerCertificateMetadata>
    <CertificateBody>
        -----BEGIN CERTIFICATE-----
        ...
        -----END CERTIFICATE-----
    </CertificateBody>
    <CertificateChain>
        -----BEGIN CERTIFICATE-----
        MIICdzCCAeCgAwIBAgIGANc+Ha2wMA0GCSqGSIb3DQEBBQUAMFMxCzAJBgNVBAYT
        ...
        AEaHzTpmEXAMPLE=
        -----END CERTIFICATE-----
    </CertificateChain>
</ServerCertificate>
c2-iam GetServerCertificate ServerCertificateName certificate-1