> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# RegisterKmsEncryptionKey

Shared Administration

›

[Protobuf](https://docs.canton.network/reference/admin-api/protobuf/overview.md)

›

[com.digitalasset.canton.crypto.admin.v30](https://docs.canton.network/reference/admin-api/protobuf/packages/com-digitalasset-canton-crypto-admin-v30.md)

›

RegisterKmsEncryptionKey

com.digitalasset.canton.crypto.admin.v30

# RegisterKmsEncryptionKey

gRPC

RPC

`/com.digitalasset.canton.crypto.admin.v30.VaultService/RegisterKmsEncryptionKey`

## Protocol Details

Protocol
gRPC

Service
VaultService

RPC
RegisterKmsEncryptionKey

Client stream
No

Server stream
No

## Inputs

### RegisterKmsEncryptionKeyRequest

Message
com.digitalasset.canton.crypto.admin.v30.RegisterKmsEncryptionKeyRequest

Client stream
No

`kms_key_id`
string

`name`
string

## Outputs

### RegisterKmsEncryptionKeyResponse

Message
com.digitalasset.canton.crypto.admin.v30.RegisterKmsEncryptionKeyResponse

Server stream
No

`public_key`
EncryptionPublicKey

## Related Schemas

> [accordion] com.digitalasset.canton.crypto.admin.v30.RegisterKmsEncryptionKeyRequest
>
> `kms_key_id`
> string
>
> `name`
> string

> [accordion] com.digitalasset.canton.crypto.admin.v30.RegisterKmsEncryptionKeyResponse
>
> `public_key`
> EncryptionPublicKey

grpcurl

```bash grpcurl theme={"theme":{"light":"github-light","dark":"github-dark"}}
# Add -plaintext if the server is not using TLS.
grpcurl \
  -d @ \
  <HOST:PORT> \
  com.digitalasset.canton.crypto.admin.v30.VaultService/RegisterKmsEncryptionKey <<'EOF'
{
  "kmsKeyId": "string",
  "name": "string"
}
EOF
```

OK

application/json

```json OK theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "publicKey": "string"
}
```
