Files
ca-certificates-brazil/crt2bundle.sh
Christian Tosta bdc70acaaf Initial commit
2025-03-27 05:20:04 -03:00

15 lines
233 B
Bash
Executable File

#!/bin/bash
out=${1}
mkdir -p $(dirname ${out})
shift
in=''
for c in ${*}; do
echo "+ Loading CA certificate: ${c}";
in="${in} -certfile ${c}";
done;
openssl crl2pkcs7 -nocrl ${in} \
| openssl pkcs7 -print_certs -out ${out}