Introduce test that manually decrypts TLS via OpenSSL#8699
Introduce test that manually decrypts TLS via OpenSSL#8699normanmaurer merged 1 commit intonetty:4.1from
Conversation
|
Can one of the admins verify this patch? |
handler/src/main/java/io/netty/handler/ssl/PseudoRandomFunction.java
Outdated
Show resolved
Hide resolved
handler/src/main/java/io/netty/handler/ssl/PseudoRandomFunction.java
Outdated
Show resolved
Hide resolved
handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java
Outdated
Show resolved
Hide resolved
handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java
Outdated
Show resolved
Hide resolved
handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java
Outdated
Show resolved
Hide resolved
handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java
Outdated
Show resolved
Hide resolved
handler/src/test/java/io/netty/handler/ssl/PseudoRandomFunctionTest.java
Outdated
Show resolved
Hide resolved
handler/src/main/java/io/netty/handler/ssl/PseudoRandomFunction.java
Outdated
Show resolved
Hide resolved
handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java
Outdated
Show resolved
Hide resolved
handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java
Outdated
Show resolved
Hide resolved
handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java
Outdated
Show resolved
Hide resolved
|
@fzakaria netty-tcnative 2.0.21.Final was released |
|
Thanks for the feedback @normanmaurer |
handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java
Outdated
Show resolved
Hide resolved
handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java
Outdated
Show resolved
Hide resolved
handler/src/test/java/io/netty/handler/ssl/PseudoRandomFunctionTest.java
Outdated
Show resolved
Hide resolved
handler/src/test/java/io/netty/handler/ssl/PseudoRandomFunctionTest.java
Outdated
Show resolved
Hide resolved
normanmaurer
left a comment
There was a problem hiding this comment.
Sorry for the late review. Ping me when ready
There was a problem hiding this comment.
As it seems your implementation is based on the code linked above I think we would also do something related to licensing after looking at the header of the file:
If this code is completely different you may want to just remove the link tho.
There was a problem hiding this comment.
It's imitated in the sense that I had no clue how to use the engine API.
There is only a single way really to use it though to go through the state machine.
handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java
Outdated
Show resolved
Hide resolved
handler/src/test/java/io/netty/handler/ssl/PseudoRandomFunctionTest.java
Outdated
Show resolved
Hide resolved
handler/src/test/java/io/netty/handler/ssl/PseudoRandomFunctionTest.java
Outdated
Show resolved
Hide resolved
handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java
Outdated
Show resolved
Hide resolved
handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java
Outdated
Show resolved
Hide resolved
handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java
Outdated
Show resolved
Hide resolved
|
@netty-bot let me know once addressed |
baeb979 to
4d06e21
Compare
|
Sorry for the delay @normanmaurer -- hopefully I addressed all your feedback. |
|
ping. |
|
@netty-bot test this please |
Looks like an intermittent failure. Not related to the code change. |
|
@fzakaria please fix compile error: |
|
@normanmaurer must be a change from 4.1 master Let me remove the offending line. |
Motivation: I've introduced netty/netty-tcnative#421 that introduced exposing OpenSSL master key & client/server random values with the purpose of allowing someone to log them to debug the traffic via auxiliary tools like Wireshark (see also netty#8653) Modification: Augmented OpenSslEngineTest to include a test which manually decrypts the TLS ciphertext after exposing the masterkey + client/server random. This acts as proof that the tc-native new methods work correctly! Signed-off-by: Farid Zakaria <farid.m.zakaria@gmail.com>
|
@netty-bot test this please |
|
@netty-bot Test this please |
|
@fzakaria thanks a lot |
Motivation: I've introduced netty/netty-tcnative#421 that introduced exposing OpenSSL master key & client/server random values with the purpose of allowing someone to log them to debug the traffic via auxiliary tools like Wireshark (see also #8653) Modification: Augmented OpenSslEngineTest to include a test which manually decrypts the TLS ciphertext after exposing the masterkey + client/server random. This acts as proof that the tc-native new methods work correctly! Result: More tests Signed-off-by: Farid Zakaria <farid.m.zakaria@gmail.com>
Motivation:
I've introduced netty/netty-tcnative#421 that introduced exposing OpenSSL master key & client/server random values with the purpose of allowing someone to log them to debug the traffic via auxiliary tools like Wireshark (see also #8653)
Modification:
Augmented OpenSslEngineTest to include a test which manually decrypts the TLS ciphertext after exposing the masterkey + client/server random. This acts as proof that the tc-native new methods work correctly!
It would be great to include the test in netty-tcnative itself however I leveraged the JDK SSLEngine implementation to perform the TLS handshake.
Result:
Tests pass!