#!/bin/bash set -e echo "Generating chain cert file..." cat ${rootdir}/intermediate/crt/intermediate.crt ${rootdir}/crt/ca.crt > ${rootdir}/intermediate/crt/intermediate-chained.crt chmod 444 ${rootdir}/intermediate/crt/intermediate-chained.crt