Use regex of all domains in cert for matching domains to certs

Fixes #8, fixes #9