Skip to content

Instantly share code, notes, and snippets.

View danm's full-sized avatar

Daniel Morrison danm

View GitHub Profile
#!/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"
@danm
danm / config.json
Created July 6, 2020 00:03
TLS configuration for TelescopeCLI
{
"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": {}
}
@danm
danm / CouchEC2Setup.sh
Last active November 16, 2015 14:39
CloudFormation Amazon Linux EC2 (v 2015.09.0) User Data Bash Script for Installing CouchDB from source with Erlang
#!/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