-
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.
- Loading branch information
Showing
2 changed files
with
66 additions
and
66 deletions.
There are no files selected for viewing
124 changes: 62 additions & 62 deletions
124
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,86 +1,86 @@ | ||
- | ||
name: "SSL - Default" | ||
description: "Default ssl configuration" | ||
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" | ||
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" | ||
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" | ||
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" | ||
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" | ||
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" | ||
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" | ||
ciphers: HIGH:!ADH:!EXP:!MD5:!RC4:!3DES:!CAMELLIA:@STRENGTH | ||
protocol: ssl_tlsv1_2 | ||
expect: open_error | ||
error: handshake failure | ||
# Override ossec.conf | ||
CIPHERS: "CAMELLIA" | ||
CIPHERS: CAMELLIA | ||
- | ||
name: "SSL - Compatible ciphers from Agent" | ||
description: "Send a message with a compatible yet not default cypher" | ||
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" | ||
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" | ||
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" | ||
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" | ||
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:'" | ||
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 Manger" | ||
description: "Send a message with a compatible yet not default cypher" | ||
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" | ||
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" | ||
CIPHERS: SHA256 | ||
- | ||
name: "Valid Certificates - Manager verification without host" | ||
description: "Enables CA Certificate and validates that conneciton is acepted when valid certs are provided" | ||
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:'" | ||
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