Skip to content

Instantly share code, notes, and snippets.

View hengfeiyang's full-sized avatar

Hengfei Yang hengfeiyang

View GitHub Profile
@hengfeiyang
hengfeiyang / golang-tls.md
Created July 10, 2016 03:42 — forked from denji/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