Get Destination Certificate Details
If you want to get the certificate details, do not set "trust_certficates": true when you create a destination with our REST API. We can only provide the certificate details through the failed Validate Certificate setup test.
When creating a destination using our REST API, either set
"trust_certficates": falseor omit the field in the Create a Destination endpoint request.The setup test verifying the certificate will fail with a message that includes the
hashandencoded_certparameters you need:{ "code": "Success", "message": "Destination has been created", "data": { ..., "setup_tests": [ ..., { "title": "Validate Certificate", "status": "FAILED", "message": "No trust anchors for this connection", "details": [ { "hash": "r+u4QL4MGvZeY+DL15zONWVL...", "name": "CN=Amazon RDS Root CA, OU=Amazon RDS, O=\"Amazon Web Services, Inc.\", L=Seattle, ST=Washington, C=US", "public_key": "Sun RSA public key, 2048 bits\n modulus: 2325899...\n public exponent: 65537", "encoded_cert": "MIID9DCCAtygAwIBAgIBQjANBgkqhkiG9w0BAQUFADCBijELMA...", "sha1": "e8118856e7a7ce3...", "sha256": "afebb840be0c1af65e63e0cbd79c..." } ] } ], ... } }After you get the failed test message, note the values of
hashandencoded_cert.Send a POST request to the Approve a Destination Certificate endpoint with the
hashandencoded_certyou just obtained.