This repository has been archived on 2022-01-23. You can view files and clone it, but cannot push or open issues or pull requests.
ssladmin/gen.serverclient.chain.sh

9 lines
396 B
Bash
Raw Permalink Normal View History

#!/bin/bash
set -e
echo "Generating chain cert files (${1})..."
cat ${rootdir}/crt/${1}.crt ${rootdir}/intermediate/crt/intermediate-chained.crt > ${rootdir}/crt/${1}-chained.crt
#cat ${rootdir}/crt/${1}.user.crt ${rootdir}/intermediate/crt/intermediate-chained.crt > ${rootdir}/crt/${1}.user-chained.crt
chmod 444 ${rootdir}/crt/${1}-chained.crt
#chmod 444 ${rootdir}/crt/${1}.user-chained.crt