@@ -2163,7 +2163,8 @@ async def test_01_aws(self):
21632163 # 127.0.0.1:9001: ('Certificate does not contain any `subjectAltName`s.',)
21642164 key ["endpoint" ] = "127.0.0.1:9001"
21652165 with self .assertRaisesRegex (
2166- EncryptionError , "IP address mismatch|wronghost|IPAddressMismatch|Certificate"
2166+ EncryptionError ,
2167+ "IP address mismatch|wronghost|IPAddressMismatch|Certificate|SSL handshake failed" ,
21672168 ):
21682169 await self .client_encryption_invalid_hostname .create_data_key ("aws" , key )
21692170
@@ -2180,7 +2181,8 @@ async def test_02_azure(self):
21802181 await self .client_encryption_expired .create_data_key ("azure" , key )
21812182 # Invalid cert hostname error.
21822183 with self .assertRaisesRegex (
2183- EncryptionError , "IP address mismatch|wronghost|IPAddressMismatch|Certificate"
2184+ EncryptionError ,
2185+ "IP address mismatch|wronghost|IPAddressMismatch|Certificate|SSL handshake failed" ,
21842186 ):
21852187 await self .client_encryption_invalid_hostname .create_data_key ("azure" , key )
21862188
@@ -2197,7 +2199,8 @@ async def test_03_gcp(self):
21972199 await self .client_encryption_expired .create_data_key ("gcp" , key )
21982200 # Invalid cert hostname error.
21992201 with self .assertRaisesRegex (
2200- EncryptionError , "IP address mismatch|wronghost|IPAddressMismatch|Certificate"
2202+ EncryptionError ,
2203+ "IP address mismatch|wronghost|IPAddressMismatch|Certificate|SSL handshake failed" ,
22012204 ):
22022205 await self .client_encryption_invalid_hostname .create_data_key ("gcp" , key )
22032206
@@ -2211,7 +2214,8 @@ async def test_04_kmip(self):
22112214 await self .client_encryption_expired .create_data_key ("kmip" )
22122215 # Invalid cert hostname error.
22132216 with self .assertRaisesRegex (
2214- EncryptionError , "IP address mismatch|wronghost|IPAddressMismatch|Certificate"
2217+ EncryptionError ,
2218+ "IP address mismatch|wronghost|IPAddressMismatch|Certificate|SSL handshake failed" ,
22152219 ):
22162220 await self .client_encryption_invalid_hostname .create_data_key ("kmip" )
22172221
0 commit comments