written with a colleague 3+ years ago modified from https://github.com/elazarl/goproxy/tree/master/examples/goproxy-customca
intended to use with burp suite as part of pentesting.
generate keys from burp
- Proxy>>Options>>Export CA Cert
- choose "certificate and private key in PKS#12 keystore"
- enter password
openssl pkcs12 -in keyStore.pfx -out keyStore.pem -nodes
- enter the password above
- put them in
cert.go