@@ -2163,7 +2163,8 @@ async def test_01_aws(self):
2163
2163
# 127.0.0.1:9001: ('Certificate does not contain any `subjectAltName`s.',)
2164
2164
key ["endpoint" ] = "127.0.0.1:9001"
2165
2165
with self .assertRaisesRegex (
2166
- EncryptionError , "IP address mismatch|wronghost|IPAddressMismatch|Certificate"
2166
+ EncryptionError ,
2167
+ "IP address mismatch|wronghost|IPAddressMismatch|Certificate|SSL handshake failed" ,
2167
2168
):
2168
2169
await self .client_encryption_invalid_hostname .create_data_key ("aws" , key )
2169
2170
@@ -2180,7 +2181,8 @@ async def test_02_azure(self):
2180
2181
await self .client_encryption_expired .create_data_key ("azure" , key )
2181
2182
# Invalid cert hostname error.
2182
2183
with self .assertRaisesRegex (
2183
- EncryptionError , "IP address mismatch|wronghost|IPAddressMismatch|Certificate"
2184
+ EncryptionError ,
2185
+ "IP address mismatch|wronghost|IPAddressMismatch|Certificate|SSL handshake failed" ,
2184
2186
):
2185
2187
await self .client_encryption_invalid_hostname .create_data_key ("azure" , key )
2186
2188
@@ -2197,7 +2199,8 @@ async def test_03_gcp(self):
2197
2199
await self .client_encryption_expired .create_data_key ("gcp" , key )
2198
2200
# Invalid cert hostname error.
2199
2201
with self .assertRaisesRegex (
2200
- EncryptionError , "IP address mismatch|wronghost|IPAddressMismatch|Certificate"
2202
+ EncryptionError ,
2203
+ "IP address mismatch|wronghost|IPAddressMismatch|Certificate|SSL handshake failed" ,
2201
2204
):
2202
2205
await self .client_encryption_invalid_hostname .create_data_key ("gcp" , key )
2203
2206
@@ -2211,7 +2214,8 @@ async def test_04_kmip(self):
2211
2214
await self .client_encryption_expired .create_data_key ("kmip" )
2212
2215
# Invalid cert hostname error.
2213
2216
with self .assertRaisesRegex (
2214
- EncryptionError , "IP address mismatch|wronghost|IPAddressMismatch|Certificate"
2217
+ EncryptionError ,
2218
+ "IP address mismatch|wronghost|IPAddressMismatch|Certificate|SSL handshake failed" ,
2215
2219
):
2216
2220
await self .client_encryption_invalid_hostname .create_data_key ("kmip" )
2217
2221
0 commit comments