Small Go program to setup domain validation for Tailscale custom OCID using a webfinger
Install certbot
Ubuntu
apt install -y certbot
RHEL
yum install -y certbot
Request a certificate
certbot certonly -d mydomain.com
Save the location of the certificate and private key for use in the program.
Replace this line with your TLS cert and key
cert, err := tls.LoadX509KeyPair("TLS CERT HERE", "TLS CERT KEY HERE")
Replace this line with your email that is attached to your OCID provider account
"subject" : "acct:youremail@example.com",
Replace this line with your OCID issuer url
"href" : "OCID ISSUER URL HERE"
go mod tidy
go run main.go