Sunaina
Sunaina

Reputation: 71

Self signed certificate error in serverless deply

I am trying to deploy serverless application on AWS from my local machine.The machine is behind company firewall.

Initially I was getting connection error so I added http_proxy and https_proxy settings on terminal.

Now when I try to deploy I am constantly getting the error self signed certificate in certificate chain.

I have also created a certificate from puttygen and set the npm ca file path to it but all in vain.

My npm install works ,the only issue is with serverless deploy.

Not sure what to do next.

Thanks already for the help.

Error Screenshot

I have added the screenshot of the image if thats of any help.

Upvotes: 6

Views: 6884

Answers (1)

Run This :

export NODE_TLS_REJECT_UNAUTHORIZED=0

Then do your sls deploy

The other option you can try is :

npm i -g serverless@latest

Then do your sls deploy

Upvotes: 7

Related Questions