Skip to content

Add certs to a bundle file, but only if not already there

Notifications You must be signed in to change notification settings

spook/ssl-add2bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

ssl-add2bundle

Add certs to a bundle file, but only if not already there.

This simple script will add SSL PEM-format certificates to a bundle file, such as /etc/ssl/certs/ca-certificates.crt, but only if the new certs are not already there. It checks the fingerprint of each existing certificate against the fingerprints of the new certs.

To install, put this script into your /usr/bin directory (or any execyutable place in your PATH), then make it executable:

chmod +x /usr/bin/ssl-add2bundle

To use:

ssl-add2bundle /etc/ssl/certs/ca-certificates.crt new-cert-1.pem new-cert-2.pem...

Licensed under the MIT License.

Enjoy!

  • Uncle Spook

About

Add certs to a bundle file, but only if not already there

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages