Loading services/TS29222_CAPIF_API_Invoker_Management_API/api_invoker_management/app.py +14 −11 Original line number Diff line number Diff line Loading @@ -121,20 +121,23 @@ def verbose_formatter(): datefmt='%d/%m/%Y %H:%M:%S' ) with open("/usr/src/app/api_invoker_management/pubkey.pem", "rb") as f: pem_data = f.read() with open("/usr/src/app/api_invoker_management/pubkey.pem", "rb") as pub_file: pub_data = pub_file.read() # Extract the first certificate from the PEM (even if it comes in a bundle) cert = x509.load_pem_x509_certificate(pem_data, default_backend()) # with open("/usr/src/app/api_invoker_management/pubkey.pem", "rb") as f: # pem_data = f.read() # Extract the public key public_key = cert.public_key() # # Extract the first certificate from the PEM (even if it comes in a bundle) # cert = x509.load_pem_x509_certificate(pem_data, default_backend()) # Convert the public key to PEM (which JWT needs) pub_data = public_key.public_bytes( encoding=serialization.Encoding.PEM, format=serialization.PublicFormat.SubjectPublicKeyInfo, ) # # Extract the public key # public_key = cert.public_key() # # Convert the public key to PEM (which JWT needs) # pub_data = public_key.public_bytes( # encoding=serialization.Encoding.PEM, # format=serialization.PublicFormat.SubjectPublicKeyInfo, # ) app = connexion.App(__name__, specification_dir='openapi/') app.app.json_encoder = encoder.CustomJSONEncoder Loading services/nginx/nginx.conf +3 −1 Original line number Diff line number Diff line worker_processes auto; error_log /var/log/nginx/error.log ${LOG_LEVEL}; # error_log /var/log/nginx/error.log ${LOG_LEVEL}; error_log /var/log/nginx/error.log debug; pid /tmp/nginx.pid; events { Loading Loading
services/TS29222_CAPIF_API_Invoker_Management_API/api_invoker_management/app.py +14 −11 Original line number Diff line number Diff line Loading @@ -121,20 +121,23 @@ def verbose_formatter(): datefmt='%d/%m/%Y %H:%M:%S' ) with open("/usr/src/app/api_invoker_management/pubkey.pem", "rb") as f: pem_data = f.read() with open("/usr/src/app/api_invoker_management/pubkey.pem", "rb") as pub_file: pub_data = pub_file.read() # Extract the first certificate from the PEM (even if it comes in a bundle) cert = x509.load_pem_x509_certificate(pem_data, default_backend()) # with open("/usr/src/app/api_invoker_management/pubkey.pem", "rb") as f: # pem_data = f.read() # Extract the public key public_key = cert.public_key() # # Extract the first certificate from the PEM (even if it comes in a bundle) # cert = x509.load_pem_x509_certificate(pem_data, default_backend()) # Convert the public key to PEM (which JWT needs) pub_data = public_key.public_bytes( encoding=serialization.Encoding.PEM, format=serialization.PublicFormat.SubjectPublicKeyInfo, ) # # Extract the public key # public_key = cert.public_key() # # Convert the public key to PEM (which JWT needs) # pub_data = public_key.public_bytes( # encoding=serialization.Encoding.PEM, # format=serialization.PublicFormat.SubjectPublicKeyInfo, # ) app = connexion.App(__name__, specification_dir='openapi/') app.app.json_encoder = encoder.CustomJSONEncoder Loading
services/nginx/nginx.conf +3 −1 Original line number Diff line number Diff line worker_processes auto; error_log /var/log/nginx/error.log ${LOG_LEVEL}; # error_log /var/log/nginx/error.log ${LOG_LEVEL}; error_log /var/log/nginx/error.log debug; pid /tmp/nginx.pid; events { Loading