Last active
February 16, 2021 08:47
-
-
Save stoyan-scava/f712457533587bf19bc67ee700225e01 to your computer and use it in GitHub Desktop.
Generate RSA encoded key for AWS CloudFront trusted key
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// source: https://stackoverflow.com/a/58967523/14569745 | |
openssl genrsa -out key.pem && \ | |
openssl rsa -pubout -in key.pem -out pubkey.pem | |
// Use the content of pubkey.pem as value of PublicKey.PublicKeyConfig.EncodedKey on CloudFront:CreatePublicKey |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment