def autoCert(cn, caName, name):
    """Create a certificate signed by caName for cn into name."""
    import ca
    cac, cak = ca.loadOrDie(caName)
    c, k = ca.makeCert(cn, ca=cac, cak=cak)
    ca.saveOrDie(c, k, name)
