For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
| #!/usr/bin/env python3 | |
| """Command generator for setting DHCP Option 119 | |
| This script converts the specified domain names to DHCP Option 119 | |
| (Domain Search Option) and prints commands for various DHCP servers. | |
| USAGE: | |
| ./dhcp_option119.py DOMAIN ... | |
| EXAMPLE: |
| #!/bin/sh | |
| # This file goes in /etc/sysctl.d to set up a stable-privacy IPv6 Address | |
| cat > 50-rfc7217.conf <<EOF | |
| # Set up a secret for RFC7217 private static IPv6 address | |
| net.ipv6.conf.default.stable_secret = $(hexdump -n 16 -e '7/2 "%04x:" 1/2 "%04x" "\n"' /dev/urandom) | |
| EOF |
| unbind C-b | |
| set -g prefix C-a | |
| bind C-a send-prefix | |
| bind-key a send-keys C-a |
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "os" | |
| "os/exec" | |
| "strings" | |
| ) |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "math" | |
| "time" | |
| ) | |
| func main() { |
| FROM alpine:3.10 | |
| RUN apk update && apk upgrade | |
| RUN apk add openssl curl ca-certificates | |
| RUN printf "%s%s%s\n" \ | |
| "http://nginx.org/packages/mainline/alpine/v" \ | |
| `egrep -o '^[0-9]+\.[0-9]+' /etc/alpine-release` \ | |
| "/main" \ | |
| | tee -a /etc/apk/repositories | |
| RUN curl -o /etc/apk/keys/nginx_signing.rsa.pub https://nginx.org/keys/nginx_signing.rsa.pub | |
| RUN apk add nginx |
| package main | |
| import ( | |
| "fmt" | |
| "sync" | |
| "time" | |
| ) | |
| func main() { | |
| go setter() |
| #!/usr/bin/env python | |
| import time | |
| import math | |
| def main(): | |
| #fout = open('spidev','w') | |
| fout = open('/dev/spidev2.0', 'w') | |
| ctr = 0 |
| FROM python:3.6-alpine | |
| RUN apk add --update \ | |
| gcc \ | |
| make \ | |
| musl-dev \ | |
| libuv-dev \ | |
| linux-headers \ | |
| libxml2-dev \ | |
| libxslt-dev \ |