-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4229 from wazuh/4188-fix-openssl-errors
Skip cases that uses the deprecated protocol `TLS 1.1`
- Loading branch information
Showing
3 changed files
with
124 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
182 changes: 86 additions & 96 deletions
182
tests/integration/test_authd/data/enroll_ssl_options_tests.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,96 +1,86 @@ | ||
--- | ||
- | ||
name: "SSL - Default" | ||
description: "Default ssl configuration" | ||
test_case: | ||
- | ||
expect: "output" | ||
input: "OSSEC A:'user1'" | ||
output: "OSSEC K:'" | ||
ciphers: "HIGH:!ADH:!EXP:!MD5:!RC4:!3DES:!CAMELLIA:@STRENGTH" | ||
protocol: "ssl_tlsv1_2" | ||
- | ||
name: "SSL - Wrong ciphers" | ||
description: "Send a message with low encryption cypher suites" | ||
test_case: | ||
- | ||
expect: "open_error" | ||
input: "OSSEC A:'user1'" | ||
error: "handshake failure" | ||
ciphers: "CAMELLIA" | ||
protocol: "ssl_tlsv1_2" | ||
- | ||
name: "SSL - Incompatible ciphers from Agent" | ||
description: "Send a message with low encryption cypher suites" | ||
test_case: | ||
- | ||
ciphers: "CAMELLIA" | ||
protocol: "ssl_tlsv1_2" | ||
expect: "open_error" | ||
error: "handshake failure" | ||
- | ||
name: "SSL - Incompatible ciphers from Manger" | ||
description: "Send a message with low encryption cypher suites" | ||
test_case: | ||
- | ||
ciphers: "HIGH:!ADH:!EXP:!MD5:!RC4:!3DES:!CAMELLIA:@STRENGTH" | ||
protocol: "ssl_tlsv1_2" | ||
expect: "open_error" | ||
error: "handshake failure" | ||
# Override ossec.conf | ||
CIPHERS: "CAMELLIA" | ||
- | ||
name: "SSL - Compatible ciphers from Agent" | ||
description: "Send a message with a compatible yet not default cypher" | ||
test_case: | ||
- | ||
expect: "output" | ||
input: "OSSEC A:'user1'" | ||
output: "OSSEC K:'" | ||
ciphers: "SHA256" | ||
protocol: "ssl_tlsv1_2" | ||
- | ||
name: "SSL - Compatible ciphers from Manger" | ||
description: "Send a message with a compatible yet not default cypher" | ||
test_case: | ||
- | ||
expect: "output" | ||
input: "OSSEC A:'user1'" | ||
output: "OSSEC K:'" | ||
ciphers: "HIGH:!ADH:!EXP:!MD5:!RC4:!3DES:!CAMELLIA:@STRENGTH" | ||
protocol: "ssl_tlsv1_2" | ||
# Override ossec.conf | ||
CIPHERS: "SHA256" | ||
- | ||
name: "SSL - Wrong TLS version (TLSV1_1)" | ||
description: "Send a message with a different TLS version with Auto negotiate disabled" | ||
test_case: | ||
- | ||
ciphers: "HIGH:!ADH:!EXP:!MD5:!RC4:!3DES:!CAMELLIA:@STRENGTH" | ||
protocol: "ssl_tlsv1_1" | ||
expect: "open_error" | ||
error: "alert protocol version" | ||
# Override ossec.conf | ||
SSL_AUTO_NEGOTIATE: 'no' | ||
- | ||
name: "SSL - Auto Negotiate TLS version (TLSV1_1)" | ||
description: "Send a message with a different TLS version with Auto negotiate enabled" | ||
test_case: | ||
- | ||
ciphers: "HIGH:!ADH:!EXP:!MD5:!RC4:!3DES:!CAMELLIA:@STRENGTH" | ||
protocol: "ssl_tlsv1_1" | ||
expect: "output" | ||
input: "OSSEC A:'user1'" | ||
output: "OSSEC K:'" | ||
# Override ossec.conf | ||
SSL_AUTO_NEGOTIATE: 'yes' | ||
- | ||
name: "Valid Certificates - Manager verification without host" | ||
description: "Enables CA Certificate and validates that conneciton is acepted when valid certs are provided" | ||
test_case: | ||
- | ||
ciphers: "HIGH:!ADH:!EXP:!MD5:!RC4:!3DES:!CAMELLIA:@STRENGTH" | ||
protocol: "ssl_tlsv1_2" | ||
expect: "output" | ||
input: "OSSEC A:'user1'" | ||
output: "OSSEC K:'" | ||
- | ||
name: SSL - Default | ||
description: Default ssl configuration | ||
test_case: | ||
expect: output | ||
input: OSSEC A:'user1' | ||
output: OSSEC K:' | ||
ciphers: HIGH:!ADH:!EXP:!MD5:!RC4:!3DES:!CAMELLIA:@STRENGTH | ||
protocol: ssl_tlsv1_2 | ||
- | ||
name: SSL - Wrong ciphers | ||
description: Send a message with low encryption cypher suites | ||
test_case: | ||
expect: open_error | ||
input: OSSEC A:'user1' | ||
error: handshake failure | ||
ciphers: CAMELLIA | ||
protocol: ssl_tlsv1_2 | ||
- | ||
name: SSL - Incompatible ciphers from Agent | ||
description: Send a message with low encryption cypher suites | ||
test_case: | ||
ciphers: CAMELLIA | ||
protocol: ssl_tlsv1_2 | ||
expect: open_error | ||
error: handshake failure | ||
- | ||
name: SSL - Incompatible ciphers from Manager | ||
description: Send a message with low encryption cypher suites | ||
test_case: | ||
ciphers: HIGH:!ADH:!EXP:!MD5:!RC4:!3DES:!CAMELLIA:@STRENGTH | ||
protocol: ssl_tlsv1_2 | ||
expect: open_error | ||
error: handshake failure | ||
# Override ossec.conf | ||
CIPHERS: CAMELLIA | ||
- | ||
name: SSL - Compatible ciphers from Agent | ||
description: Send a message with a compatible yet not default cypher | ||
test_case: | ||
expect: output | ||
input: OSSEC A:'user1' | ||
output: OSSEC K:' | ||
ciphers: SHA256 | ||
protocol: ssl_tlsv1_2 | ||
- | ||
name: SSL - Wrong TLS version (TLSV1_1) | ||
description: Send a message with a different TLS version with Auto negotiate disabled | ||
test_case: | ||
ciphers: HIGH:!ADH:!EXP:!MD5:!RC4:!3DES:!CAMELLIA:@STRENGTH | ||
protocol: ssl_tlsv1_1 | ||
expect: open_error | ||
error: alert protocol version | ||
# Override ossec.conf | ||
SSL_AUTO_NEGOTIATE: 'no' | ||
- | ||
name: SSL - Auto Negotiate TLS version (TLSV1_1) | ||
description: Send a message with a different TLS version with Auto negotiate enabled | ||
test_case: | ||
ciphers: HIGH:!ADH:!EXP:!MD5:!RC4:!3DES:!CAMELLIA:@STRENGTH | ||
protocol: ssl_tlsv1_1 | ||
expect: output | ||
input: OSSEC A:'user1' | ||
output: OSSEC K:' | ||
# Override ossec.conf | ||
SSL_AUTO_NEGOTIATE: 'yes' | ||
- | ||
name: SSL - Compatible ciphers from Manager | ||
description: Send a message with a compatible yet not default cypher | ||
test_case: | ||
expect: output | ||
input: OSSEC A:'user1' | ||
output: OSSEC K:' | ||
ciphers: HIGH:!ADH:!EXP:!MD5:!RC4:!3DES:!CAMELLIA:@STRENGTH | ||
protocol: ssl_tlsv1_2 | ||
# Override ossec.conf | ||
CIPHERS: SHA256 | ||
- | ||
name: Valid Certificates - Manager verification without host | ||
description: Enables CA Certificate and validates that conneciton is acepted when valid certs are provided | ||
test_case: | ||
ciphers: HIGH:!ADH:!EXP:!MD5:!RC4:!3DES:!CAMELLIA:@STRENGTH | ||
protocol: ssl_tlsv1_2 | ||
expect: output | ||
input: OSSEC A:'user1' | ||
output: OSSEC K:' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters