"""Verified TLS compatible with the prototype installer's certificate profile. Python 3.13+ enables optional RFC-strict checks that reject the inherited prototype certificate's missing Authority Key Identifier. Standard chain, expiry, signature and hostname verification remain mandatory; no trust-all fallback. """ import ssl def application_context(cafile): context = ssl.create_default_context(cafile=cafile) context.verify_flags &= ~ssl.VERIFY_X509_STRICT assert context.verify_mode == ssl.CERT_REQUIRED and context.check_hostname return context