Wrap your customer-supplied key
Wrap your symmetric data encryption key with an ephemeral public wrapping key before you can upload it to your instance.
Before you begin
Role required: security_admin and sn_kmf.cryptographic_manager or sn_kmf.admin
You must have a symmetric data encryption key in a .bin to use these steps. For instructions on this process, see Configure Customer-supplied keys for Field Encryption Enterprise.
Important: Your symmetric data encryption key must be in a binary format (.BIN). If another format is used, the following error message:
Token failed validation. Please reattach the unmodified token.
About this task
To modify optional properties that control the size, padding algorithm, and validity period of the key, see Configure properties for customer-supplied key.
You must have a cryptographic tool to wrap your key. The example in this document uses OpenSSL 1.1. For more information on OpenSSL, see details at https://www.openssl.org. If you’re using other cryptographic tools, such as LibreSSL or GnuTLS, refer to the documentation for those products for similar steps.
Procedure
Navigate to All > System Security > Field Encryption > Field Encryption Experience.
SelectView module details from the Field Encryption modules overview to open the field encryption module that you’ve previously created.
Note: If you haven't created a field encryption module yet, you can create one using the steps in Configure Field Encryption modules.
In the Cryptographic Specification section, select Manage Specification Settings.
Select the Next button until you reach the Key Origin section.
Verify that the Origin field has a value of Upload customer supplied key.
If that value can't be selected, refer to steps 3–5 in Configure Customer-supplied keys for Field Encryption Enterprise.
In the Key Alias field, create an alias.
Your key uses this alias once it's uploaded.
Select Next.
Select the link in the Download wrapping key field.
A
token_publickeyfile downloads to your computer. Don’t rename this file.On your local machine, unzip and open the
token_publickeyfolder.You should see an import token file (.txt) and a public key file (.PEM) in this folder.
Move your symmetric data encryption key that you generated into this folder.
Copy the name of the
token_publickeyfile to your clipboard.Open a terminal session and navigate to the
token_publickeyfolder.Enter the following command:
Important: Replace any bracketed text (<>) with your specific file names and information. Use the following key wrapping command examples table as a guide.
openssl pkeyutl -encrypt -pubin -inkey publickey_<keyname>. PEM -in <keyname.bin> -out wrapped_key_material -pkeyopt rsa_padding_mode:oaep -pkeyopt rsa_oaep_md:sha256
| Directions | Command | Example | ||||||
|---|---|---|---|---|---|---|---|---|
| Input the publickey\_<keyname>.PEM | `openssl pkeyutl -encrypt -pubin -inkey publickey_| `openssl pkeyutl -encrypt -pubin -inkey publickey_567898643ffff.PEM` | Input the name of your symmetric data encryption key | `-in | `-in mykey.bin` | Enter the <-out> command and specify whether the wrapped key material should use 256-bit encryption | `-out wrapped_key_material -pkeyopt rsa_padding_mode:oaep -pkeyopt rsa_oaep_md:sha256` | NA | What to do nextNow that your key is wrapped, you can upload it to your instance using the procedure in . Parent Topic:Configure Customer-supplied keys for Field Encryption Enterprise |