Skip to content

Instantly share code, notes, and snippets.

@malaiwah
malaiwah / gist:cbc854bbb1eff01a00a7e96cbd2489fb
Last active April 8, 2020 02:56
cloud-init mtls bootstrap poc
#!/bin/bash
# Generate certificate and random material
openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048
mkdir -p /etc/ssl/private
PUBLIC_IP=$(jq -r .publicIp < /tmp/${instance_id}_publicip.json)
PUBLIC_IP_MOD=$(echo ${PUBLIC_IP} | tr . -)
DNS_NAME="${PUBLIC_IP_MOD}.nip.io"
@malaiwah
malaiwah / oracle-7.ipxe
Last active March 2, 2018 04:14 — forked from wolfgang42/debian-jessie.ipxe
Oracle 7 iPXE install for PCEngines APU2 boards over serial console
#!ipxe
kernel http://mirror.ip-projects.de/oracle/OL7/u8/os/x86_64/images/pxeboot/vmlinuz console=ttyS0,115200
initrd http://mirror.ip-projects.de/oracle/OL7/u8/os/x86_64/images/pxeboot/initrd.img