blob: b21cbdbb0eeead7bfd310690b1706ac1a6232530 [file] [log] [blame]
Joe Gregorio8b4c1732011-12-06 11:28:29 -05001#!/bin/bash
2
3openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 \
4 -keyout privatekey.pem -out publickey.pem \
5 -subj "/CN=unit-tests"
6
7openssl pkcs12 -export -out privatekey.p12 \
8 -inkey privatekey.pem -in publickey.pem \
9 -name "key" -passout pass:notasecret