restbed icon indicating copy to clipboard operation
restbed copied to clipboard

Fix #86: ECDHE with ASIO (w/ pull request #117)

Open conz27 opened this issue 8 years ago • 4 comments

Implements ECDHE support in RestBed, but requires the version of ASIO that incorporates: chriskohlhoff/asio#117

Might be a bit until that happens; but the change is here none the less.

In the mean time, you may be able to cherry-pick 0903c62, which implements a proof-of-concept version hardcoded to work with secp256r1 (P-256 curve).

Fixes #86.

conz27 avatar Apr 25 '16 05:04 conz27

How will the upgrade to the latest OpenSSL 102 effect this PR, if at all?

ben-crowhurst avatar Sep 07 '16 02:09 ben-crowhurst

@ben-crowhurst: will have to investigate the API for OpenSSL 1.0.2 and let you know.

But you need to check to see if FIPS140.2 support is necessary for your project because I don't think the OpenSSL v1.0.2 has achieved certification yet. In a nutshell, newest isn't always best depending on requirements.

conz27 avatar Sep 07 '16 02:09 conz27

Can migrate to OpenSSL-fips-2_0-stable under your recommendation?

ben-crowhurst avatar Sep 07 '16 02:09 ben-crowhurst

OpenSSL recommends the 2.0.9 branch https://github.com/openssl/openssl/releases/tag/OpenSSL-fips-2_0_9 - found it here: https://www.openssl.org/docs/fips.html.

According the OpenSSL, there is a very specific set of steps required to compile the library for FIPS140-2 support. Need to make sure your project does it exactly as specified for it to be valid; if you deviate from the process at all, it will require re-validation.

conz27 avatar Sep 07 '16 03:09 conz27