#1 rand was causing pipefail || #2 openssl req was going interactive

Made two changes

1. The secret_key variable was causing the install.sh script to abort due to pipefail being set. The way its done via a function makes it happy now. Yay.

2. OpenSSL req was going interactive and I wrapped this in a cookbook. That was not fun.