#!/bin/bash #-------------------------------------------------------------------- # $Id: link.certs,v 1.7 2007/10/19 15:53:00 drscream Exp $ # Copyright 2007 Frubar Network (drscream@frubar.net) #-------------------------------------------------------------------- cd ~/.certs for f in *.crt; do hash=$(openssl x509 -noout -hash -in $f) ln -svf $f $hash.0 done