Skip to content

Instantly share code, notes, and snippets.

View Mattemagikern's full-sized avatar

Måns Ansgariusson Mattemagikern

  • Tedsys
  • Lund
View GitHub Profile
@Mattemagikern
Mattemagikern / Certificates.go
Created May 9, 2019 08:31
Create x509 certificate chain using Golang. Root CA, Designated CA, server CA
package main
import (
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"crypto/x509/pkix"
"encoding/pem"
"fmt"
"math/big"