def verify_certs(*args):
    msg = ("Could not find a certificate: {0}\n"
            "If you want to quickly generate a self-signed certificate, "
            "use the tls.create_self_signed_cert function in Salt")

    for arg in args:
        if not os.path.exists(arg):
            raise Exception(msg.format(arg))
Sanity checking for the specified SSL certificates
dataset/ETHPy150Open saltstack/salt/salt/netapi/rest_cherrypy/__init__.py/verify_certs