Skip to content

Provision certificates to Google Apigee X

Renew a certificate that Certificate Manager - SaaS discovered on a Google Apigee X target server. Certificate Manager - SaaS uploads the renewed certificate to a new keystore and points the Apigee reference at it, so the target server picks up the new certificate without being edited and without downtime.

Important

You can provision only to certificates that discovery found. Certificate Manager - SaaS doesn't create keystores, aliases, references, or target server settings. If the keystore or alias doesn't exist in Apigee, Certificate Manager - SaaS rejects the provisioning and changes nothing.

Before you begin

  • A Google Apigee X machine that you created and whose status is Verified. Its service account needs the provisioning permissions listed on that page.
  • An installation that discovery found on the machine for the certificate you want to renew.
  • The renewed certificate in the Certificate Manager - SaaS inventory, with its private key.
  • The System Administrator or PKI Administrator role, or the Resource Owner role and membership in the machine's owning team.

To provision a certificate to Google Apigee X

Renew the certificate from the discovered installation, not from the machine's Provision option. Provisioning from the machine creates a new installation instead of renewing the one that discovery found.

  1. Sign in to Certificate Manager - SaaS.
  2. Click Installations > Machines.
  3. Click the name of the machine, and then select the Installations tab.
  4. Click the more options button at the end of the installation's row, and then select Edit.

    The Provision a certificate dialog opens with the installation's current certificate and the values that discovery recorded.

  5. In Search a certificate by name, expiration or fingerprint, enter part of the renewed certificate's name, expiration date, or fingerprint, and then select it from the results. Confirm that it's the right certificate by checking Subject DN, Validity, and Certificate SHA1 Fingerprint.

  6. Keep the discovered values: Environment, Keystore, and Alias under Keystore Information, and Target Server and Reference under Target Server Details. If the machine's Environments list isn't empty, the environment must be in it. Previous Keystore is read-only. After a renewal, it shows the keystore that the renewal replaced.
  7. (Optional) To save the installation without pushing the certificate now, disable Push certificate on save.
  8. Click Save. To save and then provision another certificate, click Save & New.

To push the installation's current certificate again without changing it, select Provision instead of Edit in the installation's menu.

After you save, Certificate Manager - SaaS checks again that the certificate can be renewed, and then:

  1. Creates a keystore named <alias>-<fingerprint>, where <fingerprint> is the SHA-256 fingerprint of the renewed certificate, and uploads the private key and certificate chain to it under the same alias name.
  2. Points the reference at the new keystore. The target server picks up the renewed certificate through the reference.
  3. Waits up to 60 seconds for the deployed configuration to show the change, and then deletes the replaced keystore if it holds only this alias and nothing else uses it.

On the installation, Keystore then shows the new keystore and Previous Keystore shows the replaced one. If Certificate Manager - SaaS can't delete the replaced keystore, for example because the change didn't appear within 60 seconds, the keystore stays in Apigee and provisioning still succeeds. Delete it in Apigee once nothing uses it. Apigee allows 100 keystores per environment, and replaced keystores that stay in place count toward that limit.

If the Apigee configuration changed since discovery so that the certificate can no longer be renewed this way, for example because a second reference now uses the keystore, provisioning fails with a message that says manual attention is required and why. Certificate Manager - SaaS changes nothing in Apigee in that case. Run discovery again after you fix the configuration.

Warning

Certificate Manager - SaaS checks only target servers. It can't see API proxies or shared flows that name the keystore or use the reference in their own TLS settings. A renewal, or the deletion of a replaced keystore, can affect those configurations.

To provision on a schedule instead of right away, set up a machine provisioning schedule.