Trusted Certificates APIs

Trusted Certificates APIs

APIs for managing Trusted Certificates

1. Add trusted certificate to the SDDC Manager

1.1. Prerequisites

  • VCF environment.

1.2. Steps

  • Invoke the API.

cURL Request

$ curl 'https://sfo-vcf01.rainpole.io/v1/sddc-manager/trusted-certificates' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/json' \
    -d '{
  "certificate" : "-----BEGIN CERTIFICATE-----\n ... \n-----END CERTIFICATE-----",
  "certificateUsageType" : "TRUSTED_FOR_OUTBOUND"
}'

$ curl 'https://sfo-vcf01.rainpole.io/v1/sddc-manager/trusted-certificates' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/json' \
    -d '{
  "certificate" : "-----BEGIN CERTIFICATE-----\n ... \n-----END CERTIFICATE-----",
  "certificateUsageType" : "TRUSTED_FOR_INBOUND"
}'

HTTP Request

POST /v1/sddc-manager/trusted-certificates HTTP/1.1
Content-Type: application/json
Accept: application/json
Content-Length: 136
Host: sfo-vcf01.rainpole.io

{
  "certificate" : "-----BEGIN CERTIFICATE-----\n ... \n-----END CERTIFICATE-----",
  "certificateUsageType" : "TRUSTED_FOR_OUTBOUND"
}

POST /v1/sddc-manager/trusted-certificates HTTP/1.1
Content-Type: application/json
Accept: application/json
Content-Length: 135
Host: sfo-vcf01.rainpole.io

{
  "certificate" : "-----BEGIN CERTIFICATE-----\n ... \n-----END CERTIFICATE-----",
  "certificateUsageType" : "TRUSTED_FOR_INBOUND"
}

HTTP Response

HTTP/1.1 200 OK

HTTP/1.1 200 OK

Tip : Refer to: Add trusted certificate to the SDDC manager API

  • If the API response is 200 and CertificateUsageType is TRUSTED_FOR_OUTBOUND

Last updated 2022-01-24 06:18:36 PST

Operations
POST
Add Trusted Certificate
Add trusted certificate to the SDDC manager