Create a Google Apigee X machine¶
Create a Google Apigee X machine so Certificate Manager - SaaS can discover and renew the client certificates that Apigee presents to your backend services over mutual TLS (mTLS). One machine covers one Apigee organization. The connector runs in the cloud, so no VSatellite is needed.
Before you begin¶
- The System Administrator, PKI Administrator, or Resource Owner role. If you have the Resource Owner role, you must own or belong to at least one team.
- The name of the Apigee organization, and the ID of the Google Cloud project that hosts it.
- A Google Cloud service account in that project with these Identity and Access Management (IAM) permissions. A custom role lets you grant only these:
- For discovery:
apigee.organizations.get,apigee.environments.get, andapigee.keystorealiases.exportCertificate. - For provisioning, also:
apigee.keystores.create,apigee.keystorealiases.create,apigee.references.get,apigee.references.update, andapigee.keystores.delete.
- For discovery:
- A JSON key for the service account.
Note
Certificate Manager - SaaS manages only certificates that it can renew without editing a target server. Each certificate must be the only alias in its keystore, and the keystore must be used exactly once: through one Apigee reference, as the client key of one enabled target server that has TLS and client authentication turned on. Discovery skips every other certificate, including truststore certificates, aliases that no enabled target server uses, keystores that a target server names directly instead of through a reference, and keystores that hold more than one alias.
To create a Google Apigee X machine¶
- Sign in to Certificate Manager - SaaS.
- Click Installations > Machines.
- Click New, and then select Google Apigee X.
- On the Properties step, in Name, enter a name for the machine.
- For Owning Team, choose the team that owns the machine. System Administrators and PKI Administrators can choose any team. Resource Owners can choose only a team they own or belong to.
-
For Authentication Method, choose Service Account Key.
Important
Default Credentials (Workload Identity) is selected by default, but don't use it. It signs in with the Google Cloud identity of the host that runs the connector, and the connector runs in Certificate Manager - SaaS, which has no Google Cloud identity in your project.
-
In Service Account Key, paste the entire contents of the service account's JSON key file. Certificate Manager - SaaS accepts only Google Cloud service account keys (key type
service_account) forgoogleapis.com.Note
Certificate Manager - SaaS encrypts the credentials you enter and doesn't display them again. On the machine's Properties tab, they appear masked. To keep a stored credential when you edit the machine, leave its masked value unchanged. Keep your own secure record of the credentials in case you need them again.
-
In Apigee Organization, enter the name of the Apigee organization to manage. The name must start with a lowercase letter or digit, contain only lowercase letters, digits, and hyphens, and be at most 63 characters long.
- In Google Cloud Project ID, enter the ID of the Google Cloud project that hosts the Apigee organization.
-
(Optional) In Environments, enter a comma-separated list of the Apigee environments to manage, for example
prod, test. Leave it empty to manage all environments in the organization.Discovery and provisioning both respect this list. Certificate Manager - SaaS ignores names that don't exist in the organization, and it rejects provisioning to an environment that isn't in the list.
-
Click Test Access. After the connection succeeds, click Continue. The Discovery step opens.
Note
The test reads the Apigee organization. It fails if the key or the organization name is wrong, or if the service account lacks the
apigee.organizations.getpermission. The test doesn't report why it failed, so check each of these. A successful test doesn't confirm the permissions that discovery and provisioning need. -
(Optional) To skip certificates that have already expired, enable Exclude Expired Certificates.
For each environment, discovery reads the deployed configuration: its keystores and aliases, references, and target servers. It finds each certificate that meets the conditions in Before you begin and records the keystore, alias, target server, and reference that use it.
-
(Optional) To discover certificates on a schedule, enable Schedule. For Repeat every, choose Day, Week, or Month, and then in At, enter the time. For Week, select the days of the week. For Month, enter the days in Day of month. Times are in Coordinated Universal Time (UTC).
- Click Continue. The Provisioning step opens.
-
(Optional) To provision certificates on a schedule, enable Schedule. For Repeat every, choose Day, Week, or Month, and then in At, enter the time. For Week, select the days of the week. For Month, enter the days in Day of month. Times are in Coordinated Universal Time (UTC).
Scheduled provisioning pushes only certificates that are queued for deployment, such as renewed certificates, so renewals install during the window you choose.
-
Click Finish.
What's next?¶
After you create the machine, run discovery on it to find the certificates your target servers use. You can then renew a discovered certificate.