Skip to content

Instantly share code, notes, and snippets.

@ifnotak
ifnotak / README.txt
Created April 6, 2020 23:32 — forked from ncw/README.txt
Client side certificates with go
This demonstrates how to make client side certificates with go
First generate the certificates with
./makecert.sh [email protected]
Run the server in one terminal
go run server.go
@ifnotak
ifnotak / client.go
Created March 25, 2020 19:56 — forked from xjdrew/client.go
golang tls client and server, require and verify certificate in double direction
package main
import (
"crypto/tls"
"crypto/x509"
"flag"
"io"
"io/ioutil"
"log"
"os"