package gemini import "crypto/tls" func FileTLS(certfile string, keyfile string) (*tls.Config, error) { cert, err := tls.LoadX509KeyPair(certfile, keyfile) if err != nil { return nil, err } return &tls.Config{ Certificates: []tls.Certificate{cert}, MinVersion: tls.VersionTLS12, ClientAuth: tls.RequestClientCert, }, nil }