For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
#!/usr/bin/env groovy | |
import org.eclipse.jetty.server.Server | |
import org.eclipse.jetty.servlet.* | |
import groovy.servlet.* | |
@Grab(group='org.eclipse.jetty.aggregate', module='jetty-all', version='7.6.15.v20140411') | |
def startJetty() { | |
def server = new Server(8080) |
# https://docs.aws.amazon.com/eks/latest/userguide/add-user-role.html | |
--- | |
apiVersion: v1 | |
data: | |
mapAccounts: | | |
[] | |
mapRoles: | | |
- username: system:node:{{EC2PrivateDNSName}} | |
rolearn: arn:aws:iam::123123123123:role/RoleEksWorker | |
groups: |
package main | |
import ( | |
"context" | |
"encoding/json" | |
"fmt" | |
"io" | |
"log" | |
"sync/atomic" | |
"time" |
package main | |
import ( | |
"context" | |
"errors" | |
"fmt" | |
"os" | |
"os/signal" | |
"syscall" | |
"time" |
package main | |
import ( | |
"encoding/json" | |
"os" | |
"reflect" | |
"text/template" | |
) |
udptunnel is a small program which can tunnel UDP packets bi-directionally over a TCP connection. Its primary purpose (and original motivation) is to allow multi-media conferences to traverse a firewall which allows only outgoing TCP connections.
# udptunnel -s 443 127.0.0.1/51820
============================================ | |
============================================ | |
============================================ | |
This does what it should: | |
regex: (.+?)(:80)? | |
Also see https://golang.org/pkg/regexp/syntax/ |