Skip to content

Instantly share code, notes, and snippets.

@stoyan-scava
Last active February 16, 2021 08:47
Show Gist options
  • Save stoyan-scava/f712457533587bf19bc67ee700225e01 to your computer and use it in GitHub Desktop.
Save stoyan-scava/f712457533587bf19bc67ee700225e01 to your computer and use it in GitHub Desktop.
Generate RSA encoded key for AWS CloudFront trusted key
// 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