Skip to content

Instantly share code, notes, and snippets.

@xjdrew
xjdrew / client.go
Last active Jul 8, 2020
golang tls client and server, require and verify certificate in double direction
View client.go
package main
import (
"crypto/tls"
"crypto/x509"
"flag"
"io"
"io/ioutil"
"log"
"os"
@ncw
ncw / README.txt
Last active Jun 29, 2020 — forked from spikebike/client output
Client side certificates with go
View README.txt
This demonstrates how to make client side certificates with go
First generate the certificates with
./makecert.sh test@test.com
Run the server in one terminal
go run server.go
You can’t perform that action at this time.