The problem In a AWS Lambda function that uses the python cryptography module, possibly as a dependency of the pyOpenSSL module, you get the error cannot import name certificate_transparency Or alternatively you get an error like this