print("Will verify generated PKCS12 certificate stores...") verify.verify_pkcs12_store("client", opts) verify.verify_pkcs12_store("server", opts) def info(opts): info.leaf_certificate_info("client") info.leaf_certificate_info("server") commands = { "generate": generate, "gen": generate, "clean": clean, "regenerate": regenerate, "regen": regenerate, "verify": verify, "verify-pkcs12": verify_pkcs12, "info": info } if __name__ == "__main__": sys.path.append("..") from tls_gen import cli from tls_gen import gen from tls_gen import paths from tls_gen import verify from tls_gen import info cli.run(commands)
def regenerate(opts): clean(opts) generate(opts) def verify(opts): print("Will verify generated certificates against the CA certificate chain...") verify.verify_leaf_certificate_against_ca_chain("client") verify.verify_leaf_certificate_against_ca_chain("server") def info(opts): info.leaf_certificate_info("client") info.leaf_certificate_info("server") commands = {"generate": generate, "gen": generate, "clean": clean, "regenerate": regenerate, "regen": regenerate, "verify": verify, "info": info} if __name__ == "__main__": sys.path.append("..") from tls_gen import cli from tls_gen import gen from tls_gen import paths from tls_gen import verify from tls_gen import info cli.run(commands)