Created
March 22, 2022 14:11
-
-
Save developer-guy/3fa78dac357da4a6c418bb3be63b61da to your computer and use it in GitHub Desktop.
Cosign generate key pair GCP KMS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gcloud kms keyrings create test - location "global" | |
$ gcloud kms keys create "cosign" \ | |
- location "global" \ | |
- keyring "test" \ | |
- purpose=asymmetric-signing - default-algorithm=ec-sign-p256-sha256 | |
$ cosign generate-key-pair - kms gcpkms://projects/$PROJECT_ID/locations/global/keyRings/test/cryptoKeys/cosign/versions/1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment