Skip to content

Instantly share code, notes, and snippets.

@hellojukay
hellojukay / Certificates.go
Created August 27, 2020 10:18 — forked from Mattemagikern/Certificates.go
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"