Python AWS Lambda Certificates

Punter Vicky

How do I add an additional CA (certificate authority) to the trust store used by my Python3 AWS Lambda function?

carlin.scott

If you only need a single CA, then get your crt file and encode it into a pem using the following command in linux:

openssl x509 -text -in "{your CA}.crt" > cacert.pem

If you need to add CA's to the default CA bundle, then copy python3.8/site-packages/certifi/cacert.pem to your lambda folder. Then run this command for each crt:

openssl x509 -text -in "{your CA}.crt" >> cacert.pem

After creating the pem file, deploy your lambda with the REQUESTS_CA_BUNDLE environment variable set to /var/task/cacert.pem.

/var/task is where AWS Lambda extracts your zipped up code to.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

How to run SQLAlchemy on AWS Lambda in Python

分類Dev

Python 2.7 AWS Lambda Support will end in 2020?

分類Dev

AWS Lambda, retries on timeout, Python SDK

分類Dev

AWS Lambda Python libsslCライブラリ

分類Dev

Send Post request to an external API using AWS Lambda in python

分類Dev

How to reduce the size of packaged python zip files for AWS Lambda

分類Dev

How do I invoke a step function using AWS Lambda ( Python)

分類Dev

NoSuchKey in resize images using python on AWS (lambda + s3)

分類Dev

AWS Lambda + python:ec2.start_instances(InstancesIds = ??)

分類Dev

AWS Lambda boto3 : Instance launch from lambda boto3 python eroor

分類Dev

Python 3 urllib with self-signed certificates

分類Dev

Pandas & AWS Lambda

分類Dev

Pandas & AWS Lambda

分類Dev

AWS Lambda Payloads

分類Dev

AWS Lambda NoClassDefFoundError

分類Dev

Webpack configuration for AWS Lambda?

分類Dev

AWS Lambda To Atlas

分類Dev

AWS Lambda To Atlas

分類Dev

NoDecodeDelegateForThisImageFormat `TIFF \" 'aws lambda

分類Dev

AWS Lambda Publishing to SNS

分類Dev

AWS Lambda different IP address for each Lambda

分類Dev

AWS Lambda Python 3.7ランタイム例外ロギング

分類Dev

AWS LambdaおよびPythonの.pycファイル

分類Dev

PythonでのAWS LambdaでのMySQLの使用に関する問題

分類Dev

Python 3のAWS Lambdaでのsqlite3エラー

分類Dev

AWS: Publish SNS message for Lambda function via boto3 (Python2)

分類Dev

Python AWS Lambda301リダイレクト

分類Dev

Aws Lambda:パンダに依存するPython関数

分類Dev

How to query in AWS athena connected through S3 using lambda functions in python

Related 関連記事

ホットタグ

アーカイブ