View the Encryption Algorithm and Store Key

The debug encryption-active-key command displays the encryption algorithm and store key for an encrypted store.

Synopsis

  1. $ cockroach debug encryption-active-key [path specified by the store flag]

Example

Start a node with encryption-at-rest enabled:

  1. $ cockroach start --store=cockroach-data --enterprise-encryption=path=cockroach-data,key=aes-128.key,old-key=plain --insecure --certs-dir=certs

View the encryption algorithm and store key:

  1. $ cockroach debug encryption-active-key cockroach-data
  1. AES128_CTR:be235c29239aa84a48e5e1874d76aebf7fb3c1bdc438cec2eb98de82f06a57a0

See also

Was this page helpful?
YesNo