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