/Tailscale-CustomOIDC-Webfinger

Simple Golang application to verify domain ownership when creating a tailnet on Tailscale using a custom OIDC identity provider

Primary LanguageGo

Tailscale-OICD-Webfinger

Small Go program to setup domain validation for Tailscale custom OCID using a webfinger

Certbot Request a Certificate

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.

Instructions

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"

Commands

go mod tidy
go run main.go