💾 Archived View for tilde.team › ~eikonal › cgidemo › test6x › test60.go captured on 2024-08-18 at 18:13:27.

View Raw

More Information

⬅️ Previous capture (2022-03-01)

-=-=-=-=-=-=-

package main

import	(
	"fmt"
	"os"
)

func main(){
	auth_type , auth_present := os.LookupEnv("AUTH_TYPE")
	if auth_present {
		remote_user := os.Getenv("REMOTE_USER")
		tls_client_hash := os.Getenv("TLS_CLIENT_HASH")
		fmt.Print("20 text/gemini\r\n")
		fmt.Println("# Client Certificate Received")
		fmt.Println("# Auth Type")
		fmt.Println(auth_type)
		fmt.Println("# Remote User")
		fmt.Println(remote_user)
		fmt.Println("# TLS Client Hash")
		fmt.Println(tls_client_hash)
	} else {
		fmt.Print("60 Please Attach Certificate\r\n")
	}
}