This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create x509 cert if not building for cloud (common in local builds) | |
if [[ -z "${ROOTCA}" ]]; then flags="-x509 -days 365"; fi | |
mkdir -p /etc/ssl/{certs,private} | |
openssl req $flags -nodes -new -newkey rsa:4096 -keyout /etc/ssl/private/server.key -out /etc/ssl/certs/server.crt -subj "/CN=${HOSTNAME}" |