mirror of
https://github.com/ekaaty/ca-certificates-brazil.git
synced 2025-12-06 01:22:38 -03:00
15 lines
233 B
Bash
Executable File
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}
|