-
Notifications
You must be signed in to change notification settings - Fork 120
Https error in AWS Lambda #141
Comments
This is most likely a problem with the JRE's installed crypto keys. Have you checked to see if the JRE you are running has the "strong crypto" extension jars installed? |
I'm running the code in AWS Lambda, and I'm almost completely sure they don't have strong crypto extension jars installed. But since other clients, including default jvm client, work fine with https, I suggest to make "strong crypto" as an opt-out future. Lambda is a hosted environment, and it's not known when they implement jre security extensions, if at all. |
Hi, do you have a code example which reproduces outside of the Lambda
environment?
…On Wed, Oct 18, 2017 at 7:16 AM, PanAeon ***@***.***> wrote:
I'm running the code in AWS Lambda, and I'm almost completely sure they
don't have strong crypto extension jars installed. But since other clients,
including default jvm client, work fine with https, I suggest to make
"strong crypto" as an opt-out future. Lambda is a hosted environment, and
it's not known when they implement jre security extensions, if at all.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#141 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfWDtRESKdVmZ6wKmnWJMJ9wSWMKZgks5std3zgaJpZM4P76Gk>
.
|
No, I don't have one at the moment. |
@PanAeon I think your are missing the real issue here. I believe that it is not a problem with scalaj-http but a problem with the remote site your are trying to connect to, its crypto requirements and the JVM you are running in. If the remote HTTPS site requires a "strong protocol" like TLS 1.2, then your JVM will need to have strong crypto added to the JRE in order for any client to connect a HTTPS connection to it. No client will be able to connect to that site without the JRE "strong" cipher support to handle this. Find out what the SSL/TLS requirements for the remote site your are trying to connect to. |
@PanAeon I ran into the same problem a day ago. I switched from One problem is the jar file after |
I was not able to duplicate this issue. What region are you running your lambda functions in? I'm running the lambda function which calls an https endpoint from this repo in us-east-1 without issues: https://github.com/hoffrocket/scalaj-http-lambda-test |
scalaj-http version: 2.3.0
scala version: 2.11
When I try to make vanilla https request in AWS Lambda (Java 8 Runtime) I've got the following error:
The text was updated successfully, but these errors were encountered: