Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ECDSA with TLS 1.0 / TLS 1.1 #187

Merged
merged 3 commits into from
Feb 8, 2017
Merged

Fix ECDSA with TLS 1.0 / TLS 1.1 #187

merged 3 commits into from
Feb 8, 2017

Conversation

ocheron
Copy link
Contributor

@ocheron ocheron commented Feb 5, 2017

I see two explanations for TestClient failures in Travis builds:

  • the default hash algorithm for ECDSA should be SHA-1 (just like for DSA)
    as described in RFC 4492 § 5.4

  • what looks like a copy/paste mistake in the definition of two ECDSA ciphers

Handshake failed with "bad SignatureRSA for ecdhparams" when
the signature is actually SignatureECDSA.

The default hash algorithm for ECDSA should be SHA-1.
It is usually installed as a dependency of the test suite,
so when RUNTEST=0 the package was missing.
@ocheron
Copy link
Contributor Author

ocheron commented Feb 6, 2017

The job failures could be the result of https://www.traviscistatus.com/incidents/sxrh0l46czqn

Related to Travis job #233.4, which picked unsupported version async-1.4
for a reason I don't understand yet.
@ocheron
Copy link
Contributor Author

ocheron commented Feb 7, 2017

Everything is back to normal and the build now reports why package async causes a failure with GHCVER=head (base-4.10 not allowed yet).

For reference the issue was a client error "bad SignatureRSA for ecdhparams"
with tls-1.3.9 and TLS < 1.2 (ECDSA SHA-1 cipher chosen by server).

So I'll merge this in a couple of days unless someone objects.

@kazu-yamamoto
Copy link
Collaborator

Sorry for the delay.
I think I can take time to review this tomorrow.

@ocheron
Copy link
Contributor Author

ocheron commented Feb 7, 2017

Great, you'll see the changes are small.

I just noticed the additional commit in #185, so please tell me if you are OK to merge your branch network-version too.

@kazu-yamamoto kazu-yamamoto merged commit a0338c8 into haskell-tls:master Feb 8, 2017
@kazu-yamamoto
Copy link
Collaborator

I understand that this is just a copy-and-paste mistake.
And thank you for fixing the CI failure.
I have merged this PR.

@kazu-yamamoto
Copy link
Collaborator

I sent a pull request for network-version. Please check.

@ocheron ocheron deleted the travis-ecdsa-failures branch February 8, 2017 17:56
@ocheron
Copy link
Contributor Author

ocheron commented Feb 8, 2017

Everything is fine, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants