Skip to content

Instantly share code, notes, and snippets.

@roening
roening / sslCertSplit.sh
Created January 30, 2024 12:40 — forked from koshatul/sslCertSplit.sh
SSL CA bundle split and openssl on each certificate
#!/bin/bash
set +e
CA_BUNDLE="${1}"
shift
if [ ! -s "${CA_BUNDLE}" ]; then
echo "usage: ${0} <ca bundle file> [openssl commands]"
echo "example: ${0} ca-bundle.pem -noout -subject -issuer"