Skip to content

NODE_EXTRA_CA_CERTS not being read #8232

@corydorning53

Description

@corydorning53

I have a Certificate Authority file (.pem) that i'm bundling with my lambda and I have added the NODE_EXTRA_CA_CERTS to my environment variables with the path to the cert file. Unfortunately, when i make my requests back to my on-prem server, node is giving the following error:

UNABLE_TO_GET_ISSUER_CERT_LOCALLY
serverless.yml
provider:
  name: aws
  region: us-east-2
  runtime: nodejs12.x
  endpointType: regional
  stage: dev
  environment:
    S3_ARTIFACTS: sast-artifacts
    NODE_EXTRA_CA_CERTS: /var/task/.certs/My-Root-CA.pem
⚠️⚠️ REPLACE WITH FULL COMMAND NAME output
UNABLE_TO_GET_ISSUER_CERT_LOCALLY

Installed version

1.83.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions