From the course: AWS Certified Developer - Associate (DVA-C02) Cert Prep

Unlock this course with a free trial

Join today to access over 23,200 courses taught by industry experts.

Hands-on lab: Encryption and Decryption using AWS KMS CLI

Hands-on lab: Encryption and Decryption using AWS KMS CLI - Amazon Web Services (AWS) Tutorial

From the course: AWS Certified Developer - Associate (DVA-C02) Cert Prep

Hands-on lab: Encryption and Decryption using AWS KMS CLI

- [Speaker] In this demo, I'll show you how to perform encryption and decryption of data using AWS KMS CLI. Before we start, you need to ensure that you have programmatic access to call AWS KMS CLI. We'll be using Windows 10, so you need to download, install, and configure the latest version of AWS CLI for Windows. If you're not on Windows, you can download the AWS CLI version that is suited for your operating system. We're going to use a tool called certutil to decode basic 64 encoded data. This comes pre-installed in Windows, but in case you don't have it, you can look for it on the internet. If you're in Linux, using the basics of our command is also fine. So let's get started. First, let's create a CMK. For simplicity, let's leave everything to defaults. Type AWS KMS create key on the command prompts. So this will return a bunch of information about our key, such as the account id it belongs to, the key id, the date…

Contents