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

WIP: MainWindow, Settings: update cert pinning to prefer SHA-256. #2870

Closed
wants to merge 2 commits into from

Conversation

mkrautz
Copy link
Contributor

@mkrautz mkrautz commented Feb 24, 2017

This commits updates Mumble's certificate pinning to prefer SHA-256.

By default, Mumble will still consider a users's stored SHA-1 pins, but
after the first successful connection attempt, the pin will be updated
to the preferred hash (currently SHA-256).

Note: This PR depends on PR #2868 and includes its commits to be able to build in CI. I will fix this once PR #2868 is landed.

We used to use QCryptographicHash, but Qt 4 doesn't support Sha256.

To remedy that, we've implemented this class on top of OpenSSL's EVP
system.

Besides being able to work on Qt 4, this class also means we can add
additional hash functions in the future, which are not necessarily
supported by Qt, such as BLAKE2.
This commits updates Mumble's certificate pinning to prefer SHA-256.

By default, Mumble will still consider a users's stored SHA-1 pins, but
after the first successful connection attempt, the pin will be updated
to the preferred hash (currently SHA-256).
@mkrautz
Copy link
Contributor Author

mkrautz commented Feb 24, 2017

I think we should clean these codepaths up by creating a separate CertificatePinEvaluator class...

I believe my current implementation works, but it's hardly beautiful.

@mkrautz
Copy link
Contributor Author

mkrautz commented May 20, 2017

@mkrautz
Copy link
Contributor Author

mkrautz commented Jun 11, 2017

Superceeded by #3128.

@mkrautz mkrautz closed this Jun 11, 2017
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

1 participant