Skip to content

Instantly share code, notes, and snippets.

@obscurerichard
obscurerichard / dedupe-cacerts.sh
Last active August 29, 2015 14:06
CA Certificate Bundle De-Duplication script
#!/bin/bash
# dedupe-cacerts.sh
#
# De-duplicates a certificate authority bundle, such as cacerts.pem
# or ca-bundle.crt. This will emit CA certificates in the order they
# appeared, annotating them with full info on each certificate,
# omitting any duplicate certificates.
#
# Usage:
#