Skip to content

Instantly share code, notes, and snippets.

View kyledinh's full-sized avatar

Kyle Dinh kyledinh

View GitHub Profile
@kyledinh
kyledinh / golang-tls.md
Last active January 15, 2019 15:21 — 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
@kyledinh
kyledinh / 0.md
Created October 13, 2013 01:33 — forked from disolovyov/0.md
  • [App Engine Go SDK][appengine-go-sdk]
  • [App Engine Go manual][appengine-go-manual]
  • [Go Specification][go-spec]
  • [Go standard library docs][go-core-docs]
  • Go's [error handling][thispltlife]. You can try figuring it out: there's a [blog post][errors-blog] and a [book section][errors-book]. Alternatively, you can give up and use two error-handling functions provided below.
func error2(err error, c appengine.Context) bool {
    if err != nil {
 c.Errorf("%v", err.Error())