2019-07-18 08:48:15 +00:00
|
|
|
{
|
2020-06-20 18:24:53 +00:00
|
|
|
"comment": "Tests for SSL configuration: tls13 only",
|
2019-07-18 08:48:15 +00:00
|
|
|
"configs": {
|
|
|
|
"1": {
|
|
|
|
"proto": {
|
|
|
|
"proto": "ssl",
|
|
|
|
"no_ssl2": "yes",
|
|
|
|
"no_ssl3": "yes",
|
|
|
|
"no_tls10": "yes",
|
|
|
|
"no_tls11": "yes",
|
2020-06-20 18:24:53 +00:00
|
|
|
"no_tls12": "yes",
|
2020-06-27 20:39:41 +00:00
|
|
|
"no_tls13": "no",
|
|
|
|
"ciphersuites": "TLS_CHACHA20_POLY1305_SHA256"
|
2019-07-18 08:48:15 +00:00
|
|
|
},
|
|
|
|
"client": {
|
|
|
|
"ip": "127.0.0.1",
|
2020-06-21 09:02:21 +00:00
|
|
|
"port": "8462",
|
|
|
|
"use_sni": "yes",
|
|
|
|
"sni_servername": "example.com"
|
2019-07-18 08:48:15 +00:00
|
|
|
},
|
|
|
|
"server": {
|
|
|
|
"ip": "127.0.0.1",
|
2020-06-20 18:24:53 +00:00
|
|
|
"port": "9462",
|
2019-07-18 08:48:15 +00:00
|
|
|
"crt": "server.crt",
|
|
|
|
"key": "server.key"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"2": {
|
|
|
|
"proto": {
|
|
|
|
"proto": "ssl",
|
2020-06-20 18:24:53 +00:00
|
|
|
"no_ssl2": "no",
|
|
|
|
"no_ssl3": "no",
|
2019-07-18 08:48:15 +00:00
|
|
|
"no_tls10": "no",
|
2020-06-20 18:24:53 +00:00
|
|
|
"no_tls11": "no",
|
|
|
|
"no_tls12": "no",
|
2020-06-27 20:39:41 +00:00
|
|
|
"no_tls13": "no",
|
|
|
|
"ciphersuites": "TLS_CHACHA20_POLY1305_SHA256"
|
2019-07-18 08:48:15 +00:00
|
|
|
},
|
|
|
|
"client": {
|
|
|
|
"ip": "127.0.0.1",
|
2020-06-21 09:02:21 +00:00
|
|
|
"port": "8462",
|
|
|
|
"use_sni": "yes",
|
|
|
|
"sni_servername": "example.com"
|
2019-07-18 08:48:15 +00:00
|
|
|
},
|
|
|
|
"server": {
|
|
|
|
"ip": "127.0.0.1",
|
2020-06-20 18:24:53 +00:00
|
|
|
"port": "9462",
|
2019-07-18 08:48:15 +00:00
|
|
|
"crt": "server.crt",
|
|
|
|
"key": "server.key"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tests": {
|
|
|
|
"1": {
|
2020-06-20 18:24:53 +00:00
|
|
|
"comment": "Configures tls13 only",
|
2019-07-18 08:48:15 +00:00
|
|
|
"states": {
|
|
|
|
"1": {
|
|
|
|
"testend": "client",
|
2020-06-20 18:24:53 +00:00
|
|
|
"cmd": "send",
|
|
|
|
"payload": "GET / HTTP/1.1\r\nHost: example.com\r\n\r\n",
|
|
|
|
"assert": {
|
2020-06-27 20:39:41 +00:00
|
|
|
"current_cipher_name": {
|
|
|
|
"==": [
|
|
|
|
"TLS_CHACHA20_POLY1305_SHA256"
|
|
|
|
]
|
|
|
|
},
|
2020-06-20 18:24:53 +00:00
|
|
|
"current_cipher_version": {
|
|
|
|
"==": [
|
|
|
|
"TLSv1.3"
|
|
|
|
],
|
|
|
|
"!match": [
|
|
|
|
"SSLv3",
|
|
|
|
"^TLSv1\\.[012]?$"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"ssl_proto_version": {
|
|
|
|
"==": [
|
|
|
|
"TLSv1.3"
|
|
|
|
],
|
|
|
|
"!=": [
|
|
|
|
"SSLv3"
|
|
|
|
],
|
|
|
|
"!match": [
|
|
|
|
"^TLSv1\\.[012]?$"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"ssl_state": {
|
|
|
|
"==": [
|
|
|
|
"SSLOK "
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2019-07-18 08:48:15 +00:00
|
|
|
},
|
|
|
|
"2": {
|
|
|
|
"testend": "server",
|
2020-06-20 18:24:53 +00:00
|
|
|
"cmd": "recv",
|
|
|
|
"payload": "GET / HTTP/1.1\r\nHost: example.com\r\nConnection: close\r\n\r\n",
|
|
|
|
"assert": {
|
2020-06-27 20:39:41 +00:00
|
|
|
"current_cipher_name": {
|
|
|
|
"==": [
|
|
|
|
"TLS_CHACHA20_POLY1305_SHA256"
|
|
|
|
]
|
|
|
|
},
|
2020-06-20 18:24:53 +00:00
|
|
|
"current_cipher_version": {
|
|
|
|
"==": [
|
|
|
|
"TLSv1.3"
|
|
|
|
],
|
|
|
|
"!match": [
|
|
|
|
"SSLv3",
|
|
|
|
"^TLSv1\\.[012]?$"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"ssl_proto_version": {
|
|
|
|
"==": [
|
|
|
|
"TLSv1.3"
|
|
|
|
],
|
|
|
|
"!=": [
|
|
|
|
"SSLv3"
|
|
|
|
],
|
|
|
|
"!match": [
|
|
|
|
"^TLSv1\\.[012]?$"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"ssl_state": {
|
|
|
|
"==": [
|
|
|
|
"SSLOK "
|
|
|
|
]
|
2020-06-21 09:02:21 +00:00
|
|
|
},
|
|
|
|
"sni_servername": {
|
|
|
|
"==": [
|
|
|
|
"example.com"
|
|
|
|
]
|
2020-06-20 18:24:53 +00:00
|
|
|
}
|
|
|
|
}
|
2019-07-18 08:48:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|