Skip to content

Instantly share code, notes, and snippets.

View laher's full-sized avatar

Amir Laher laher

  • TixTrack
  • Auckland
View GitHub Profile

Keybase proof

I hereby claim:

  • I am laher on github.
  • I am laher (https://keybase.io/laher) on keybase.
  • I have a public key ASCVLS6Y-OJrhT-5C3LaT8yzVeu6NN3wu4kTMz0Q8D0Iawo

To claim this, I am signing this object:

@laher
laher / loadchain-amazon.go
Created July 12, 2013 09:06
loading amazon certificate chain ... works for me
package main
import (
"fmt"
"net/http"
"crypto/tls"
"crypto/x509"
"encoding/pem"
)
var chain=`-----BEGIN CERTIFICATE-----
MIIFXjCCBEagAwIBAgIQa2auVl/QP30eK8C9SvM8ZjANBgkqhkiG9w0BAQUFADCB
@laher
laher / loadchain.go
Last active September 25, 2022 04:16
how to load a certificate chain in Go. See how https://github.com succeeds and https://facebook.com fails.
package main
import (
"fmt"
"net/http"
"crypto/tls"
"crypto/x509"
"encoding/pem"
)
var chain=`-----BEGIN CERTIFICATE-----
MIIG5jCCBc6gAwIBAgIQAze5KDR8YKauxa2xIX84YDANBgkqhkiG9w0BAQUFADBs