Skip to content

Commit 4dd9410

Browse files
author
Rajat Saxena
committed
Updated doc to add rsa key generation
1 parent 36d7706 commit 4dd9410

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ CLOUDFRONT_KEY_PAIR_ID=KEY_PAIR_ID
2727

2828
We assume that since you are using Cloudfront, you have locked down your bucket from public access. Therefore, all the files uploaded to the bucket will have ACL set to `private` i.e. they will require signed URLs in order to access them.
2929

30+
### Generating a key pair
31+
32+
Use the following commands to generate a key pair to be used above.
33+
34+
```sh
35+
openssl genrsa -out private_key.pem 2048
36+
openssl rsa -pubout -in private_key.pem -out public_key.pem
37+
```
38+
3039
## Enable trust proxy
3140

3241
This app is based on [Express](https://expressjs.com/) which cannot work reliably when it is behind a proxy. For example, it cannot detect if it behind a proxy.

0 commit comments

Comments
 (0)