given a key of type
gcloud kms keys list --keyring=mykeyring --location=us-central1
projects/mineral-minutia-820/locations/us-central1/keyRings/mykeyring/cryptoKeys/dlp ASYMMETRIC_DECRYPT RSA_DECRYPT_OAEP_2048_SHA1 SOFTWARE
gcloud kms keys versions get-public-key 1 --key dlp --keyring=mykeyring --location=us-central1 > key.pub