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

Use rustls for interop tests #125

Merged
merged 2 commits into from
Nov 9, 2019

Conversation

jen20
Copy link
Contributor

@jen20 jen20 commented Nov 9, 2019

This commit changes the interop tests to use rustls instead of openssl. Apparently in the past there was some issue with this, but it seems to work OK (locally) to me.

@jen20
Copy link
Contributor Author

jen20 commented Nov 9, 2019

Evidently that is not actually the case, guess I had stale binaries or something.

This commit changes the interop tests to use rustls instead of openssl.
Apparently in the past there was some issue with this, but it seems to
work OK to me.
This commit switches out the certificates used for testing interop to be
based on 4096-bit RSA keys, allowing rustls to be used for the interop
testing instead of OpenSSL.

The keys are generated using Terraform, although the state file is not
committed. A README.md is added to the data directory that explains how
to use Terraform to rotate the test certificates if this is ever
desirable.

This is desirable in order that none of the crates which `cargo build
--all` will build have the `openssl` feature, which should allow Tonic
to build on Windows with no issues.
@jen20
Copy link
Contributor Author

jen20 commented Nov 9, 2019

The reason for switching out the certificates here is that the upstream repo (from which the current set of certs originated) has 1024-bit keys, which rustls does not support.

@LucioFranco LucioFranco merged commit ed53be5 into hyperium:master Nov 9, 2019
@jen20 jen20 deleted the jen20/interop-rustls branch November 9, 2019 17:00
rabbitinspace pushed a commit to satelit-project/tonic that referenced this pull request Jan 1, 2020
* Use rustls for interop tests

This commit changes the interop tests to use rustls instead of openssl.
Apparently in the past there was some issue with this, but it seems to
work OK to me.

* Use certificates with larger key sizes for interop

This commit switches out the certificates used for testing interop to be
based on 4096-bit RSA keys, allowing rustls to be used for the interop
testing instead of OpenSSL.

The keys are generated using Terraform, although the state file is not
committed. A README.md is added to the data directory that explains how
to use Terraform to rotate the test certificates if this is ever
desirable.

This is desirable in order that none of the crates which `cargo build
--all` will build have the `openssl` feature, which should allow Tonic
to build on Windows with no issues.
brentalanmiller pushed a commit to brentalanmiller/tonic that referenced this pull request Oct 6, 2023
brentalanmiller pushed a commit to brentalanmiller/tonic that referenced this pull request Oct 6, 2023
# 0.3.1 (February 4th, 2023)

### Additions
- Add Vendored Feature ([hyperium#125])
- Implement AsRawFd for both tokio-rustls and tokio-native-tls TlsStream\<S\> ([hyperium#74])

### Internal
- Fix warning about renamed lint ([hyperium#93])
- fix a handful of lints, one of which was breaking the build ([hyperium#65])

[hyperium#65]: tokio-rs/tls#65
[hyperium#74]: tokio-rs/tls#74
[hyperium#93]: tokio-rs/tls#93
[hyperium#125]: tokio-rs/tls#125
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.

2 participants