Skip to content

Instantly share code, notes, and snippets.

View gertcuykens's full-sized avatar

Gert Cuykens gertcuykens

  • belgium
View GitHub Profile
@gertcuykens
gertcuykens / elixir_symbols.md
Last active March 6, 2021 17:20 — forked from h4cc/elixir_symbols.md
All symbols used in the elixir programming language
@gertcuykens
gertcuykens / golang-tls.md
Created July 19, 2020 20:50 — forked from 6174/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
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"io"
"log"
)