cd_write_ca_certificates
This commit is contained in:
parent
2a19db986c
commit
5fdf986cde
1 changed files with 13 additions and 11 deletions
24
cd.sh
24
cd.sh
|
@ -480,20 +480,22 @@ cd_install_ca_certificates () {
|
||||||
}
|
}
|
||||||
|
|
||||||
cd_write_ca_certificates () {
|
cd_write_ca_certificates () {
|
||||||
local index
|
|
||||||
local path
|
|
||||||
local text
|
|
||||||
cd_step "Write CA certificates"
|
cd_step "Write CA certificates"
|
||||||
cd_mkdir "${CD_CA_ROOT}"
|
cd_mkdir "${CD_CA_ROOT}"
|
||||||
index=1
|
cd_write_ca_certificates__index=1
|
||||||
eval "text=\"\${CD_CA_${index}}\""
|
eval "cd_write_ca_certificates__text=\
|
||||||
while [ "${text}" ] ; do
|
\"\${CD_CA_${cd_write_ca_certificates__index}}\""
|
||||||
path="${CD_CA_ROOT}/${index}.crt"
|
while [ "${cd_write_ca_certificates__text}" ] ; do
|
||||||
|
cd_write_ca_certificates__path="\
|
||||||
|
${CD_CA_ROOT}/${cd_write_ca_certificates__index}.crt"
|
||||||
cd_split
|
cd_split
|
||||||
cd_write "${path}" "${text}"
|
cd_write \
|
||||||
cd_openssl "${path}"
|
"${cd_write_ca_certificates__path}" \
|
||||||
index=$((index+1))
|
"${cd_write_ca_certificates__text}"
|
||||||
eval "text=\"\${CD_CA_${index}}\""
|
cd_openssl "${cd_write_ca_certificates__path}"
|
||||||
|
cd_write_ca_certificates__index=$((cd_write_ca_certificates__index+1))
|
||||||
|
eval "cd_write_ca_certificates__text=\
|
||||||
|
\"\${CD_CA_${cd_write_ca_certificates__index}}\""
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue