POST Add Trusted Certificates

The Add Trusted Certificates API is used to add trusted certificates.

Method URI

POST

/cdwebconsole/svc/secureplustrustedcertificate

The following example shows the Command:
curl -X 'POST' \
  'https://172.20.186.131:9445/cdwebconsole/svc/secureplustrustedcertificate' \
  -H 'Authorization: eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbmlzdHJhdG9yOjE3Mi4yMC4xODYuMTMxOjEzNjM6MjFhZDU0MzAtNjgxMC00OGZlLWFjNTAtYTllNDU2ZDkyYTU5IiwiZXhwIjoxNzE1MzE4MDQ5fQ.0JDWbLeir6ilCSlvxZjlOeWK7AJ_U0SHKZz_-lcoxkzf2xlBO8t2SflJc3h1zp79lHoJmjBm79zZO9utxVnF5g' \
  -H 'Content-Type: application/json' \
  -H 'X-XSRF-TOKEN: 78fa7a7f-4680-4f8a-a523-260938000097' \
  -d '{"trustedCertificateLabel":"DemoTrustCert","trustedCertificateData":"-----BEGIN CERTIFICATE----- gQWBBRlOZw+ 6hImotytViePH/88wM/LxjBFBgNVHSMEPjA8gBRlOZw+6hImotytViePH/88wM/L xqEZpBcwFTETMBEGA1UEAxMKQ0QgRGVtbyBDQYIJANqgeDOovR7eMAsGA1UdDwQE AwIBpjAMBgNVHRMEBTADAQH/MA0GCSqGSIb3D -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- NTI1MTgwMzA1WhcNMjcwNTIzMTgwMzA1WjAZ MRcwFQYDVQQDEw5DRCBEZW1vIFN1YiBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP ADCCAQoCggEBALKfwkFzP -----END CERTIFICATE-----"}'
Table 1. Input Parameters
Parameter Name Required/Optional Description Valid values

trustedCertificateLabel

Required

Specifies the label to be given to the trusted certificate

Sample Value: DemoTrustCert

trustedCertificateData Required Specifies the trusted certificate  
The following example shows the Request payload:
{
 "trustedCertificateLabel": "DemoTrustCert",
 "trustedCertificateData": "-----BEGIN CERTIFICATE----- MIIDMjCCAhqgAwIBAgIJANqgeDOovR7eMA0GCSqGSIb3DQEBCwUAMBU MRMwEQYDVQQDEwpDRCBEZW1vIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB CgKCAQEA7xtAf0dDSRYn3/K+8RnbHH/+2frmLYQoU7JP0Ow0zyzm2IKfTmcJixjP 3xPVPjCJfQaxyj65PusihH4hln6gQYIxzZzjdvOsXLsoRwtq8pgWa1j1UQ6bM164 /Q6 -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- MIIDNjCCAh6gAwIBAgIJAJOB4oesj95RMA0GCSqGSIb3DQEBCwUAMBUxEzARBgNV 8e4Zy5qVvYYr/YcL1YCH1UB8wxs1Srn3iqsCAwEAAaOBhDCBgTAdBgNVHQ4EFgQU -----END CERTIFICATE-----"
}
The following example shows the Sample Response:
[
  {
    "messageCode": 201,
    "message": "The trusted certificate has been successfully imported"
  }
]