spcd_openssl_x509
This commit is contained in:
parent
f3f19abad0
commit
636f53713b
1 changed files with 6 additions and 7 deletions
13
spcd/main.sh
13
spcd/main.sh
|
@ -1036,7 +1036,7 @@ spcd_write_ca_certificates() {
|
||||||
spcd_wcc__path="${SPCD_CA_ROOT}/${spcd_wcc__index}.crt"
|
spcd_wcc__path="${SPCD_CA_ROOT}/${spcd_wcc__index}.crt"
|
||||||
spcd_split
|
spcd_split
|
||||||
spcd_os_write "${spcd_wcc__path}" "${spcd_wcc__text}"
|
spcd_os_write "${spcd_wcc__path}" "${spcd_wcc__text}"
|
||||||
spcd_openssl "${spcd_wcc__path}"
|
spcd_openssl_x509 "${spcd_wcc__path}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1232,13 +1232,12 @@ spcd_install_package() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
spcd_openssl() {
|
spcd_openssl_x509() {
|
||||||
spcd_openssl__file="${1}"
|
spcd_openssl_x509__file="${1}"
|
||||||
if [ -f "${spcd_openssl__file}" ]; then
|
if [ -f "${spcd_openssl_x509__file}" ]; then
|
||||||
openssl x509 \
|
openssl x509 \
|
||||||
-in "${spcd_openssl__file}" \
|
-in "${spcd_openssl_x509__file}" \
|
||||||
-noout -text ||
|
-noout -text
|
||||||
exit
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue