> For the complete documentation index, see [llms.txt](https://paul-gleason.gitbook.io/champlain-college-classes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://paul-gleason.gitbook.io/champlain-college-classes/sys-360-cloud-admin/labs/lab-4-2-s3-sse-client-provided-keys.md).

# Lab 4-2: S3 SSE - Client Provided Keys

## Client Provided Keys:

Install the openssl windows binary. Then cd to the bin directory in that folder.

```
.\openssl version
```

<figure><img src="https://1702353884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg4BXXN6DhMLmwASC6sFj%2Fuploads%2FjF6FxrgveAXPerhPYVkY%2Fimage.png?alt=media&amp;token=a7413927-ca44-4c47-8c83-5b0ff219f846" alt=""><figcaption></figcaption></figure>

### Create key for encrypting file:

```
.\openssl enc -aes-128-cbc -k secret -P
```

### Upload and download file:

s3 buckets are s3://*bucket\_name/folder(if needed)/filename*

```
aws s3 cp source destination
```

**Screenshot of terminal output  of successful CLI upload of file using your client key**

<figure><img src="https://1702353884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg4BXXN6DhMLmwASC6sFj%2Fuploads%2FhVCm6sbCHJUFTfCGbImE%2Fimage.png?alt=media&amp;token=66ee8ae6-315f-4cd0-85c8-b606bf53f0d5" alt=""><figcaption></figcaption></figure>

**Screenshot of terminal output  of successful CLI download of file using your client key**

<figure><img src="https://1702353884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg4BXXN6DhMLmwASC6sFj%2Fuploads%2FVeVCO4aaqmTtNNcWCOr9%2Fimage.png?alt=media&amp;token=6314830d-8995-4b82-96bf-03191ff6ce33" alt=""><figcaption></figcaption></figure>
