Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

SSL error with Node 12 : TLS Configuration

Avatar

Avatar
Boost 1
Level 2
Anil_Umachigi
Level 2

Likes

2 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Give Back 5
Give Back 3
Applaud 5
Springboard
View profile

Avatar
Boost 1
Level 2
Anil_Umachigi
Level 2

Likes

2 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Give Back 5
Give Back 3
Applaud 5
Springboard
View profile
Anil_Umachigi
Level 2

25-05-2021

Hello 

 

I have been having issues reaching an internal API with following error. 

write EPROTO 4390231552:error:1425F102:SSL routines

 

I guess this happens since Node.js 12's default TLS settings are stricter now.

The site doesn't handle TLS v1.2. Node 12 by default need 1.2

On my local machine, I could specify the TLS version to make this work like this "node --tls-min-v1.0 apiProd.js" 

How can I turn off the TLS verification? or make this work? 

 

Thank you

Replies

Avatar

Avatar
Boost 1
Level 1
tmj
Level 1

Likes

2 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Establish
Give Back
View profile

Avatar
Boost 1
Level 1
tmj
Level 1

Likes

2 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Establish
Give Back
View profile
tmj
Level 1

29-05-2021

Hey Anil, I will check with the team if there is a way to lower the Node TLS version or any other workarounds. That being said, as you may be aware that Adobe I/O Runtime and Project Firefly are moving away from NodeJS 12 to NodeJS 14. Could you try using NodeJS 14 and see if you can work around the problem?

Avatar

Avatar
Boost 1
Level 2
Anil_Umachigi
Level 2

Likes

2 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Give Back 5
Give Back 3
Applaud 5
Springboard
View profile

Avatar
Boost 1
Level 2
Anil_Umachigi
Level 2

Likes

2 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Give Back 5
Give Back 3
Applaud 5
Springboard
View profile
Anil_Umachigi
Level 2

29-05-2021

@tmj 

Thank you for getting back! 

Yes I did read about the update to NodeJS 14. I had issues updating as well. Awaiting reply to my query to kanika's post here

 

I tried updating the manifest.yml from 12 to 

runtime: 'nodejs:14' , but go an error on deploy 
 
Deploying actions
Error: Unsupported node version in action digi****/aaTrigger. Supported versions are ^10 || ^12
 
This is an existing app, wondering what's the right way to update. 
Also any new app will be 14 by default henceforth? 
 
It would be great if you could get back with an update of possible way forward. 
 

Avatar

Avatar
Give Back 3
Employee
dr_venture
Employee

Likes

15 likes

Total Posts

43 posts

Correct Reply

6 solutions
Top badges earned
Give Back 3
Boost 10
Give Back
Affirm 5
Boost 5
View profile

Avatar
Give Back 3
Employee
dr_venture
Employee

Likes

15 likes

Total Posts

43 posts

Correct Reply

6 solutions
Top badges earned
Give Back 3
Boost 10
Give Back
Affirm 5
Boost 5
View profile
dr_venture
Employee

30-05-2021

In your projects root folder is a file named package.json.  in there you need to update the node support from ^10 || ^12 to 12^ || 14^.  

I will send you a video on how to do it via messaging.  The video will be posted to YouTube Adobe Developer channel next week.

 

Cheers

Avatar

Avatar
Boost 1
Level 2
Anil_Umachigi
Level 2

Likes

2 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Give Back 5
Give Back 3
Applaud 5
Springboard
View profile

Avatar
Boost 1
Level 2
Anil_Umachigi
Level 2

Likes

2 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Give Back 5
Give Back 3
Applaud 5
Springboard
View profile
Anil_Umachigi
Level 2

31-05-2021

@dr_venture Thank you! So I updated the Package.json, in addition I updated the Manifest.yml 

runtime: 'nodejs:14' but got the same error.  

 

A video will be great! thanks a bunch!! 

Avatar

Avatar
Boost 1
Level 2
Anil_Umachigi
Level 2

Likes

2 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Give Back 5
Give Back 3
Applaud 5
Springboard
View profile

Avatar
Boost 1
Level 2
Anil_Umachigi
Level 2

Likes

2 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Give Back 5
Give Back 3
Applaud 5
Springboard
View profile
Anil_Umachigi
Level 2

31-05-2021

Thank you all the node version is resolved, but it would be great if you could post here about the SSL issue when have an update 

 

 

Avatar

Avatar
Give Back 3
Employee
dr_venture
Employee

Likes

15 likes

Total Posts

43 posts

Correct Reply

6 solutions
Top badges earned
Give Back 3
Boost 10
Give Back
Affirm 5
Boost 5
View profile

Avatar
Give Back 3
Employee
dr_venture
Employee

Likes

15 likes

Total Posts

43 posts

Correct Reply

6 solutions
Top badges earned
Give Back 3
Boost 10
Give Back
Affirm 5
Boost 5
View profile
dr_venture
Employee

01-06-2021

Is that TLS issue still persisting for you with node 14? 

Avatar

Avatar
Boost 1
Level 2
Anil_Umachigi
Level 2

Likes

2 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Give Back 5
Give Back 3
Applaud 5
Springboard
View profile

Avatar
Boost 1
Level 2
Anil_Umachigi
Level 2

Likes

2 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Give Back 5
Give Back 3
Applaud 5
Springboard
View profile
Anil_Umachigi
Level 2

01-06-2021

Yes, I'm afraid it is. 

I get the below error, when I try to access an internal API.

Works fine in Postman, but error's out in action. 

"message": "write EPROTO 140477986916224:error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol:../deps/openssl/openssl/ssl/statem/statem_lib.c:1958:\n",

 

Avatar

Avatar
Boost 1
Level 1
tmj
Level 1

Likes

2 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Establish
Give Back
View profile

Avatar
Boost 1
Level 1
tmj
Level 1

Likes

2 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Establish
Give Back
View profile
tmj
Level 1

02-06-2021

Hey @Anil_Umachigi 

I checked with the team and there is no way to specify or lower the TLS version. We do not recommend our customers to use anything below TLS 1.2 because both TLS 1.0 and TLS 1.1 are not as secure and the industry as a whole is moving away from them.

Thus, our recommendation would be to upgrade the service/API in question to use TLS 1.2 or higher.

For the sake of completeness, you could try to work around the issue by using Node JS 10 for your functions. That being said, we again do not recommend this approach because - 

1. NodeJS 10 is no longer being maintained since April 2021.
2. You are likely to see higher latencies for actions using Node JS 10 due to cold starts (we will only prewarm Node 14 containers going forward.)

 

Thanks

Avatar

Avatar
Boost 1
Level 2
Anil_Umachigi
Level 2

Likes

2 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Give Back 5
Give Back 3
Applaud 5
Springboard
View profile

Avatar
Boost 1
Level 2
Anil_Umachigi
Level 2

Likes

2 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Give Back 5
Give Back 3
Applaud 5
Springboard
View profile
Anil_Umachigi
Level 2

02-06-2021

@tmj Thank you! That makes sense. 

I will check with our internal team and see if they can get that in pipeline. 

 

Thank you again!