#!/bin/bash
set -e
echo "Generating intermediate key..."
openssl genrsa -out ${rootdir}/intermediate/key/intermediate.key 4096 > /dev/null 2>&1
chmod 400 ${rootdir}/intermediate/key/intermediate.key