Associating an Application object to a certificate

This example shows you how to associate an Application object to a certificate. The Application object that is associated with a certificate provides provisioning parameters and credentials.

To associate an Application object to a certificate

  1. Reuse or create a bearer token that includes the scope certificate:manage. The bearer token grants your client access to Trust Protection Platform.

    To get a bearer token, see Getting a token. For each subsequent API call, be sure to include the token in the request header.
  2. Call the POST Certificates/Associate method. For example:

    POST https://tpp.venafi.example/vedsdk/Certificates/Associate
    Authorization:Bearer 4MyGeneratedBearerTknz==
    {
       "CertificateDN":"\\VED\\Policy\\Certificates\\Lab71\\TestCert2",
       "ApplicationDN":[
          "\\VED\\Policy\\Certificates\\Lab71\\SVR55\\Lab71ApplicationObject"
       ],
       "PushToNew":"true"
    }