2016-04-08 01:07:50 +08:00
|
|
|
# Generated with generate_ssl_tests.pl
|
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
num_tests = 10
|
2016-04-08 01:07:50 +08:00
|
|
|
|
|
|
|
test-0 = 0-verify-success
|
|
|
|
test-1 = 1-verify-custom-reject
|
|
|
|
test-2 = 2-verify-custom-allow
|
2021-01-17 03:43:00 +08:00
|
|
|
test-3 = 3-verify-custom-retry
|
|
|
|
test-4 = 4-noverify-success
|
|
|
|
test-5 = 5-noverify-ignore-custom-reject
|
|
|
|
test-6 = 6-noverify-accept-custom-allow
|
|
|
|
test-7 = 7-verify-fail-no-root
|
|
|
|
test-8 = 8-verify-custom-success-no-root
|
|
|
|
test-9 = 9-verify-custom-fail-no-root
|
2016-04-08 01:07:50 +08:00
|
|
|
# ===========================================================
|
|
|
|
|
|
|
|
[0-verify-success]
|
|
|
|
ssl_conf = 0-verify-success-ssl
|
|
|
|
|
|
|
|
[0-verify-success-ssl]
|
|
|
|
server = 0-verify-success-server
|
|
|
|
client = 0-verify-success-client
|
|
|
|
|
|
|
|
[0-verify-success-server]
|
|
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
|
|
CipherString = DEFAULT
|
|
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
|
|
|
|
[0-verify-success-client]
|
|
|
|
CipherString = DEFAULT
|
|
|
|
VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
|
|
|
|
VerifyMode = Peer
|
|
|
|
|
|
|
|
[test-0]
|
|
|
|
ExpectedResult = Success
|
|
|
|
|
|
|
|
|
|
|
|
# ===========================================================
|
|
|
|
|
|
|
|
[1-verify-custom-reject]
|
|
|
|
ssl_conf = 1-verify-custom-reject-ssl
|
|
|
|
|
|
|
|
[1-verify-custom-reject-ssl]
|
|
|
|
server = 1-verify-custom-reject-server
|
|
|
|
client = 1-verify-custom-reject-client
|
|
|
|
|
|
|
|
[1-verify-custom-reject-server]
|
|
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
|
|
CipherString = DEFAULT
|
|
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
|
|
|
|
[1-verify-custom-reject-client]
|
|
|
|
CipherString = DEFAULT
|
|
|
|
VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
|
|
|
|
VerifyMode = Peer
|
|
|
|
|
|
|
|
[test-1]
|
2016-07-21 22:29:48 +08:00
|
|
|
ExpectedClientAlert = HandshakeFailure
|
2016-04-08 01:07:50 +08:00
|
|
|
ExpectedResult = ClientFail
|
2016-07-21 22:29:48 +08:00
|
|
|
client = 1-verify-custom-reject-client-extra
|
|
|
|
|
|
|
|
[1-verify-custom-reject-client-extra]
|
|
|
|
VerifyCallback = RejectAll
|
2016-04-08 01:07:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
# ===========================================================
|
|
|
|
|
|
|
|
[2-verify-custom-allow]
|
|
|
|
ssl_conf = 2-verify-custom-allow-ssl
|
|
|
|
|
|
|
|
[2-verify-custom-allow-ssl]
|
|
|
|
server = 2-verify-custom-allow-server
|
|
|
|
client = 2-verify-custom-allow-client
|
|
|
|
|
|
|
|
[2-verify-custom-allow-server]
|
|
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
|
|
CipherString = DEFAULT
|
|
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
|
|
|
|
[2-verify-custom-allow-client]
|
|
|
|
CipherString = DEFAULT
|
|
|
|
VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
|
|
|
|
VerifyMode = Peer
|
|
|
|
|
|
|
|
[test-2]
|
|
|
|
ExpectedResult = Success
|
2016-07-21 22:29:48 +08:00
|
|
|
client = 2-verify-custom-allow-client-extra
|
|
|
|
|
|
|
|
[2-verify-custom-allow-client-extra]
|
|
|
|
VerifyCallback = AcceptAll
|
2016-04-08 01:07:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
# ===========================================================
|
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[3-verify-custom-retry]
|
|
|
|
ssl_conf = 3-verify-custom-retry-ssl
|
2016-04-08 01:07:50 +08:00
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[3-verify-custom-retry-ssl]
|
|
|
|
server = 3-verify-custom-retry-server
|
|
|
|
client = 3-verify-custom-retry-client
|
2016-04-08 01:07:50 +08:00
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[3-verify-custom-retry-server]
|
2016-04-08 01:07:50 +08:00
|
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
|
|
CipherString = DEFAULT
|
|
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[3-verify-custom-retry-client]
|
2016-04-08 01:07:50 +08:00
|
|
|
CipherString = DEFAULT
|
2021-01-17 03:43:00 +08:00
|
|
|
VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
|
|
|
|
VerifyMode = Peer
|
2016-04-08 01:07:50 +08:00
|
|
|
|
|
|
|
[test-3]
|
|
|
|
ExpectedResult = Success
|
2021-01-17 03:43:00 +08:00
|
|
|
client = 3-verify-custom-retry-client-extra
|
|
|
|
|
|
|
|
[3-verify-custom-retry-client-extra]
|
|
|
|
VerifyCallback = RetryOnce
|
2016-04-08 01:07:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
# ===========================================================
|
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[4-noverify-success]
|
|
|
|
ssl_conf = 4-noverify-success-ssl
|
2016-04-08 01:07:50 +08:00
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[4-noverify-success-ssl]
|
|
|
|
server = 4-noverify-success-server
|
|
|
|
client = 4-noverify-success-client
|
2016-04-08 01:07:50 +08:00
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[4-noverify-success-server]
|
2016-04-08 01:07:50 +08:00
|
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
|
|
CipherString = DEFAULT
|
|
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[4-noverify-success-client]
|
2016-04-08 01:07:50 +08:00
|
|
|
CipherString = DEFAULT
|
|
|
|
|
|
|
|
[test-4]
|
|
|
|
ExpectedResult = Success
|
2016-07-21 22:29:48 +08:00
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
|
|
|
|
# ===========================================================
|
|
|
|
|
|
|
|
[5-noverify-ignore-custom-reject]
|
|
|
|
ssl_conf = 5-noverify-ignore-custom-reject-ssl
|
|
|
|
|
|
|
|
[5-noverify-ignore-custom-reject-ssl]
|
|
|
|
server = 5-noverify-ignore-custom-reject-server
|
|
|
|
client = 5-noverify-ignore-custom-reject-client
|
|
|
|
|
|
|
|
[5-noverify-ignore-custom-reject-server]
|
|
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
|
|
CipherString = DEFAULT
|
|
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
|
|
|
|
[5-noverify-ignore-custom-reject-client]
|
|
|
|
CipherString = DEFAULT
|
|
|
|
|
|
|
|
[test-5]
|
|
|
|
ExpectedResult = Success
|
|
|
|
client = 5-noverify-ignore-custom-reject-client-extra
|
|
|
|
|
|
|
|
[5-noverify-ignore-custom-reject-client-extra]
|
2016-07-21 22:29:48 +08:00
|
|
|
VerifyCallback = RejectAll
|
2016-04-08 01:07:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
# ===========================================================
|
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[6-noverify-accept-custom-allow]
|
|
|
|
ssl_conf = 6-noverify-accept-custom-allow-ssl
|
2016-04-08 01:07:50 +08:00
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[6-noverify-accept-custom-allow-ssl]
|
|
|
|
server = 6-noverify-accept-custom-allow-server
|
|
|
|
client = 6-noverify-accept-custom-allow-client
|
2016-04-08 01:07:50 +08:00
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[6-noverify-accept-custom-allow-server]
|
2016-04-08 01:07:50 +08:00
|
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
|
|
CipherString = DEFAULT
|
|
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[6-noverify-accept-custom-allow-client]
|
2016-04-08 01:07:50 +08:00
|
|
|
CipherString = DEFAULT
|
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[test-6]
|
2016-04-08 01:07:50 +08:00
|
|
|
ExpectedResult = Success
|
2021-01-17 03:43:00 +08:00
|
|
|
client = 6-noverify-accept-custom-allow-client-extra
|
2016-07-21 22:29:48 +08:00
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[6-noverify-accept-custom-allow-client-extra]
|
2016-07-21 22:29:48 +08:00
|
|
|
VerifyCallback = AcceptAll
|
2016-04-08 01:07:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
# ===========================================================
|
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[7-verify-fail-no-root]
|
|
|
|
ssl_conf = 7-verify-fail-no-root-ssl
|
2016-04-08 01:07:50 +08:00
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[7-verify-fail-no-root-ssl]
|
|
|
|
server = 7-verify-fail-no-root-server
|
|
|
|
client = 7-verify-fail-no-root-client
|
2016-04-08 01:07:50 +08:00
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[7-verify-fail-no-root-server]
|
2016-04-08 01:07:50 +08:00
|
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
|
|
CipherString = DEFAULT
|
|
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[7-verify-fail-no-root-client]
|
2016-04-08 01:07:50 +08:00
|
|
|
CipherString = DEFAULT
|
|
|
|
VerifyMode = Peer
|
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[test-7]
|
2016-07-21 22:29:48 +08:00
|
|
|
ExpectedClientAlert = UnknownCA
|
2016-04-08 01:07:50 +08:00
|
|
|
ExpectedResult = ClientFail
|
|
|
|
|
|
|
|
|
|
|
|
# ===========================================================
|
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[8-verify-custom-success-no-root]
|
|
|
|
ssl_conf = 8-verify-custom-success-no-root-ssl
|
2016-04-08 01:07:50 +08:00
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[8-verify-custom-success-no-root-ssl]
|
|
|
|
server = 8-verify-custom-success-no-root-server
|
|
|
|
client = 8-verify-custom-success-no-root-client
|
2016-04-08 01:07:50 +08:00
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[8-verify-custom-success-no-root-server]
|
2016-04-08 01:07:50 +08:00
|
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
|
|
CipherString = DEFAULT
|
|
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[8-verify-custom-success-no-root-client]
|
2016-04-08 01:07:50 +08:00
|
|
|
CipherString = DEFAULT
|
|
|
|
VerifyMode = Peer
|
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[test-8]
|
2016-04-08 01:07:50 +08:00
|
|
|
ExpectedResult = Success
|
2021-01-17 03:43:00 +08:00
|
|
|
client = 8-verify-custom-success-no-root-client-extra
|
2016-07-21 22:29:48 +08:00
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[8-verify-custom-success-no-root-client-extra]
|
2016-07-21 22:29:48 +08:00
|
|
|
VerifyCallback = AcceptAll
|
2016-04-08 01:07:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
# ===========================================================
|
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[9-verify-custom-fail-no-root]
|
|
|
|
ssl_conf = 9-verify-custom-fail-no-root-ssl
|
2016-04-08 01:07:50 +08:00
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[9-verify-custom-fail-no-root-ssl]
|
|
|
|
server = 9-verify-custom-fail-no-root-server
|
|
|
|
client = 9-verify-custom-fail-no-root-client
|
2016-04-08 01:07:50 +08:00
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[9-verify-custom-fail-no-root-server]
|
2016-04-08 01:07:50 +08:00
|
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
|
|
CipherString = DEFAULT
|
|
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[9-verify-custom-fail-no-root-client]
|
2016-04-08 01:07:50 +08:00
|
|
|
CipherString = DEFAULT
|
|
|
|
VerifyMode = Peer
|
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[test-9]
|
2016-07-21 22:29:48 +08:00
|
|
|
ExpectedClientAlert = HandshakeFailure
|
2016-04-08 01:07:50 +08:00
|
|
|
ExpectedResult = ClientFail
|
2021-01-17 03:43:00 +08:00
|
|
|
client = 9-verify-custom-fail-no-root-client-extra
|
2016-07-21 22:29:48 +08:00
|
|
|
|
2021-01-17 03:43:00 +08:00
|
|
|
[9-verify-custom-fail-no-root-client-extra]
|
2016-07-21 22:29:48 +08:00
|
|
|
VerifyCallback = RejectAll
|
2016-04-08 01:07:50 +08:00
|
|
|
|
|
|
|
|