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
| #!/bin/sh | |
| HOST=ip-{ip}.eu-west-1.compute.internal | |
| # Generate self signed root CA cert | |
| openssl req -nodes -x509 -newkey rsa:2048 -keyout ca.key -out ca.crt -subj "/C=GB/ST=London/L=London/O=BBC/OU=root/CN=$HOST/emailAddress=daniel.morrison@bbc.co.uk" | |
| # Generate server cert to be signed | |
| openssl req -nodes -newkey rsa:2048 -keyout server.key -out server.csr -subj "/C=GB/ST=London/L=London/O=BBC/OU=server/CN=$HOST/emailAddress=daniel.morrison@bbc.co.uk" |
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
| { | |
| "name": "tls-config", | |
| "environment": "sandbox", | |
| "configuration": { | |
| "TLS_ACTIVE": "TRUE", | |
| "TLS_CERT": "/Users/{add your user id}/Library/tls/cert.pem", | |
| "TLS_KEY": "/Users/{add your user id}/Library/tls/cert.pem" | |
| }, | |
| "secure": {} | |
| } |
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
| #!/bin/bash | |
| cd /home/ec2-user | |
| yum-config-manager --enable epel | |
| sudo yum -y install gcc gcc-c++ libtool libicu-devel openssl-devel autoconf-archive erlang python27 python-sphinx help2man | |
| wget http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz | |
| tar xvfz js185-1.0.0.tar.gz | |
| cd js-1.8.5/js/src | |
| ./configure | |
| make |