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