Skip to content

Commit

Permalink
added a pem encoded version of the certificate holding the end entity…
Browse files Browse the repository at this point in the history
… certificate together with all certificates from the chain
  • Loading branch information
elbosso committed Jan 6, 2024
1 parent f78a381 commit 60ab3b1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions sign_request.sh
Original file line number Diff line number Diff line change
Expand Up @@ -392,13 +392,17 @@ ca_cert=${ca_chain}
fi
echo "issuer=\"${cn}/issuer.crt\"" >index.txt
cp ${ca_cert} "${cn}/issuer.crt"
echo "zert=\"${cn}/${cn}.crt\"" >>index.txt
cp "certs/${cn}.crt" "${cn}/"
echo "zertDER=\"${cn}/${cn}.der\"" >>index.txt
echo "zert (single)=\"${cn}/${cn}_single.crt\"" >>index.txt
cp "certs/${cn}.crt" "${cn}/${cn}_single.crt"
echo "zert (chained)=\"${cn}/${cn}.crt\"" >>index.txt
cat "certs/${cn}.crt" "${ca_chain}" >"${cn}/${cn}.crt"
echo "zert (single) DER=\"${cn}/${cn}.der\"" >>index.txt
cp "certs/${cn}.der" "${cn}/"
if [ $selection = "timestamp" ]; then
#$dialog_exe --backtitle "Info" --msgbox "copying ${ca_chain} to ${cn}/chain.pem" 0 0
echo "chain=\"${cn}/chain.pem\"" >>index.txt
cp "${ca_chain}" "${cn}/chain.pem"
echo "tsa.conf=\"${cn}/tsa.conf\"" >>index.txt
cp "${script_dir}"/templates/tsa.conf "${cn}"
sed -i -- "s/##crt##/${cn}.crt/g" "${cn}"/tsa.conf
else
Expand Down

0 comments on commit 60ab3b1

Please sign in to comment.