Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View MagnusTiberius's full-sized avatar
💭
Writing code

Ben Gonzales MagnusTiberius

💭
Writing code
View GitHub Profile
@MagnusTiberius
MagnusTiberius / golang-tls.md
Created September 24, 2017 23:24 — forked from subfuzion/golang-tls.md
Simple Golang HTTPS/TLS Examples
Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
    
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
openssl ecparam -genkey -name secp384r1 -out server.key
@MagnusTiberius
MagnusTiberius / client.go
Created September 24, 2017 23:17 — forked from spikebike/client.go
TLS server and client
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"io"
"log"
)