From fe56b5a8eea81f61ff2b73d51d122b3a94ef96a4 Mon Sep 17 00:00:00 2001 From: Michal Sadowski Date: Thu, 28 Mar 2024 16:28:26 +0100 Subject: [PATCH] Test switch to pki-tools --- hello_world/app.py | 25 ++----------------------- hello_world/requirements.txt | 2 +- 2 files changed, 3 insertions(+), 24 deletions(-) diff --git a/hello_world/app.py b/hello_world/app.py index f49fa4a..b6603bf 100644 --- a/hello_world/app.py +++ b/hello_world/app.py @@ -1,31 +1,10 @@ import json -# import requests - -from cryptography.hazmat.primitives import hashes, padding +from pki_tools import Name, Certificate, LoadError def lambda_handler(event, context): - """Sample pure Lambda function - - Parameters - ---------- - event: dict, required - API Gateway Lambda Proxy Input Format - - Event doc: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html#api-gateway-simple-proxy-for-lambda-input-format - - context: object, required - Lambda Context runtime methods and attributes - - Context doc: https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - - Returns - ------ - API Gateway Lambda Proxy Output Format: dict - - Return doc: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html - """ + print(pki_tools.__version__) # try: # ip = requests.get("http://checkip.amazonaws.com/") diff --git a/hello_world/requirements.txt b/hello_world/requirements.txt index ace9e84..d3c3204 100644 --- a/hello_world/requirements.txt +++ b/hello_world/requirements.txt @@ -1,2 +1,2 @@ requests -cryptography \ No newline at end of file +pki-tools \ No newline at end of file