Skip to content

Unable to perform SSL connections with Jetty #15

@bissim

Description

@bissim

It looks like Jetty agrees on using Elliptic Curve Cryptography while connecting via HTTPS to servers; however, this causes an error that ultimately results in Diffie-Hellman keypair for communication not being generated, thus throwing com.amazonaws.SdkClientException: Unable to execute HTTP request: java.lang.RuntimeException: Could not generate DH keypair (it may be another exception class rather than SdkClientException).

A workaround is presented in this question reporting the same kind of issue: the -Dcom.sun.net.ssl.enableECC=false arg must be passed to VM in order for Jetty server to continue execution.

Indeed, adding the VM argument to MasterServerMain run configuration makes the trick; however I don't know how to programmatically configure this argument nor if it's even right to disable ECC. Someone suggests that this issue may be caused by outdated BouncyCastle version. I'll try to look into the issue, however for the time being I'll stick around with the VM argument since I could not otherwise test EC2 instance generation and administration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions