Skip to content

Instantly share code, notes, and snippets.

View jenspeveling's full-sized avatar

Jens Peveling jenspeveling

  • Thoughtworks
View GitHub Profile

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
'use strict';
/**
* this is useful if you want to use S3 endpoint over S3 Webserver Endpoint for Cloudfront Origin because
* OAI is not possible with S3 Webserver Origin (You can restrict access by using secrets in headers but
* you'd have to leave the bucket public - this might be against company policy or does not fit your security
* architecture)
*
Downside if using S3 endpoint origin is lack of support for paths in URI. e.g
* www.example.com/path/ will return empty object. What we actually want is to