-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
New BoringSSL context option - SSL_CTX_set1_sigalgs #765
Conversation
- Allowing certificate types in certificate callback to be modified (allows for any certificate type to be used now)
…rs from server/client
...c-classes-quic/src/main/java/io/netty/incubator/codec/quic/BoringSSLCertificateCallback.java
Outdated
Show resolved
Hide resolved
...c-classes-quic/src/main/java/io/netty/incubator/codec/quic/BoringSSLCertificateCallback.java
Outdated
Show resolved
Hide resolved
codec-classes-quic/src/main/java/io/netty/incubator/codec/quic/BoringSSL.java
Show resolved
Hide resolved
codec-classes-quic/src/main/java/io/netty/incubator/codec/quic/BoringSSL.java
Outdated
Show resolved
Hide resolved
...c-classes-quic/src/main/java/io/netty/incubator/codec/quic/BoringSSLCertificateCallback.java
Outdated
Show resolved
Hide resolved
…/BoringSSL.java Removed null check as per normanmaurer Co-authored-by: Norman Maurer <[email protected]>
…/BoringSSL.java Code style fix as per normanmaurer Co-authored-by: Norman Maurer <[email protected]>
...c-classes-quic/src/main/java/io/netty/incubator/codec/quic/BoringSSLCertificateCallback.java
Outdated
Show resolved
Hide resolved
...c-classes-quic/src/main/java/io/netty/incubator/codec/quic/BoringSSLCertificateCallback.java
Outdated
Show resolved
Hide resolved
@normanmaurer Two new SSLContextOption's have been added for client and server certificate/key types |
...c-classes-quic/src/main/java/io/netty/incubator/codec/quic/BoringSSLCertificateCallback.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @jaymansfield did you sign our icla yet ? https://netty.io/s/icla
Yes just now. |
@jaymansfield thanks a lot... will merge when the build passed. |
@jaymansfield would it be possible to add a unit test as well ? |
I think this would fit well in |
I added two very basic ones for the key type change. One that passes by allowing only RSA keys (using your existing self signed test certificate which is RSA), and one that is expected to fail since the self signed certificate doesn't match the newly specific key type (EdDSA) in the test case |
codec-native-quic/src/test/java/io/netty/incubator/codec/quic/QuicChannelConnectTest.java
Outdated
Show resolved
Hide resolved
codec-native-quic/src/test/java/io/netty/incubator/codec/quic/QuicChannelConnectTest.java
Outdated
Show resolved
Hide resolved
codec-native-quic/src/test/java/io/netty/incubator/codec/quic/QuicChannelConnectTest.java
Outdated
Show resolved
Hide resolved
codec-native-quic/src/test/java/io/netty/incubator/codec/quic/QuicChannelConnectTest.java
Outdated
Show resolved
Hide resolved
codec-native-quic/src/test/java/io/netty/incubator/codec/quic/QuicChannelConnectTest.java
Outdated
Show resolved
Hide resolved
codec-native-quic/src/test/java/io/netty/incubator/codec/quic/QuicChannelConnectTest.java
Show resolved
Hide resolved
codec-native-quic/src/test/java/io/netty/incubator/codec/quic/QuicChannelConnectTest.java
Outdated
Show resolved
Hide resolved
@jaymansfield please apply this change:
|
Thanks for this! Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there... two more things. After this we can merge
codec-native-quic/src/test/java/io/netty/incubator/codec/quic/QuicChannelConnectTest.java
Outdated
Show resolved
Hide resolved
...c-classes-quic/src/main/java/io/netty/incubator/codec/quic/BoringSSLCertificateCallback.java
Outdated
Show resolved
Hide resolved
…/BoringSSLCertificateCallback.java Co-authored-by: Norman Maurer <[email protected]>
@jaymansfield thanks a lot again |
My use case of this library had the requirement to use a different signing algorithm and certificate type (ed25519 to be specific).
Changes:
Result:
This increases the overall flexibility of the quic implementation.