Skip to content

Instantly share code, notes, and snippets.

@6f70
Created May 12, 2014 03:47
Show Gist options
  • Select an option

  • Save 6f70/3b968fdb33155ae746f2 to your computer and use it in GitHub Desktop.

Select an option

Save 6f70/3b968fdb33155ae746f2 to your computer and use it in GitHub Desktop.
shell script for generating burp-importable cert/key
#!/bin/sh
openssl genrsa -out ca.key 2048
openssl req -new -key ca.key -out ca.csr
openssl x509 -days 3650 -signkey ca.key -in ca.csr -req -out ca.crt
openssl pkcs8 -topk8 -nocrypt -in ca.key -outform der -out cakey.der
openssl x509 -in ca.crt -outform der -out cacert.der
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment