'Adds a cert to the certstore. We register the CN in the cert plus
any SANs, and also the list of names provided as an argument.'

def add_cert(self, entry, *names):

    if entry.cert.cn:
        self.certs[entry.cert.cn] = entry
    for i in entry.cert.altnames:
        self.certs[i] = entry
    for i in names:
        self.certs[i] = entry
