Skip to content

Instantly share code, notes, and snippets.

@bifurcation
bifurcation / gencsr.go
Created July 18, 2016 16:59
A quick script to generate CSRs
// This is a simple script to generate test CSRs.
package main
import (
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"crypto/x509/pkix"
"encoding/asn1"
"encoding/pem"
### Keybase proof
I hereby claim:
* I am bifurcation on github.
* I am rlb (https://keybase.io/rlb) on keybase.
* I have a public key whose fingerprint is B2F9 DABF 1A3C AF29 EC26 726C D7DC 0CF6 49F9 5CAF
To claim this, I am signing this object: