[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-18。"],[],[],null,["# Set up Cloud EKM via the internet\n\nThis topic is about using Cloud External Key Manager (Cloud EKM) to create and manage external keys\naccessed via the internet.\n\nBefore you begin\n----------------\n\nAfter you complete the steps below, you can begin using Cloud EKM\nkeys to protect your data.\n\n### Create a new project\n\n1. In the Google Cloud console, go to the Manage Resources page.\n\n [Go to the Manage Resources page](https://console.cloud.google.com/project)\n2. Create a new Google Cloud project or select an existing project.\n\n | **Important:** The name you use must be between 4 and 30 characters. When you type the name, the form will suggest a project ID, which you can edit. The project ID you use must be between 6 and 30 characters, with a lowercase letter as the first character. You can use a dash, lowercase letter, or digit for the remaining characters, but the last character cannot be a dash. You should be aware that some resource identifiers (such as project IDs) might be retained beyond the life of your project. For this reason, avoid storing sensitive information in resource identifiers.\n ...see naming guidelines\n3.\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n4. You can learn more about [Cloud EKM pricing](/kms/pricing).\n\n### Enable Cloud KMS\n\n1. Enable the Cloud Key Management Service API for the project.\n\n [Enable the Cloud Key Management Service API](https://console.cloud.google.com/flows/enableapi?apiid=cloudkms.googleapis.com)\n2. Make a note of your project's Cloud EKM service account. In the\n following example, replace \u003cvar translate=\"no\"\u003ePROJECT_NUMBER\u003c/var\u003e with your\n Google Cloud project's [project number](/resource-manager/docs/creating-managing-projects#identifying_projects). This\n information is also visible each time you use the Google Cloud console to create\n a Cloud EKM key.\n\n ```\n service-PROJECT_NUMBER@gcp-sa-ekms.iam.gserviceaccount.com\n ```\n\n### Prepare the external key management partner system\n\nIn the external key management partner system, grant the Google Cloud service account\naccess to use the external key. Treat the service account as an email address.\nPartners may use different terminology than that used in this topic.\n\n### Ensure gcloud CLI is up to date\n\nIf you're going to use the Google Cloud CLI, ensure that it's up-to-date with\nthe following command: \n\n### gcloud\n\n```\ngcloud components update\n```\n\nTroubleshooting errors\n----------------------\n\nIf you experience an error when creating or using a Cloud EKM key, an\nerror is logged. For information about troubleshooting Cloud EKM\nerrors, see the [Cloud EKM error reference](/kms/docs/reference/ekm_errors).\n\nWhat's next\n-----------\n\n- [Create an external key](/kms/docs/create-external-key)"]]