certs: Factor out the blacklist hash creation