You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Karate to test an API over HTTPS and have configured SSL with a custom trust store. The handshake between the client and server appears to be successful, but I am still encountering the following error:
java.net.SocketException: An established connection was aborted by the software in your host machine
I have added the server certificate to my trust store (.pem format) and updated the Karate configuration accordingly. The SSL handshake seems to be happening, but I still receive a SocketException when making a request.
What I Have Tried:
1. Verified that the server certificate is correctly added to the trust store.
2. Used trustAll: true to bypass certificate validation (still getting the error).
3. Checked the server logs, but no clear reason for the aborted connection.
4. Increased connectTimeout and readTimeout.
Questions:
• Is there anything missing in my Karate SSL configuration that could cause this issue?
• Are there any additional debugging steps I can take to diagnose why the connection is being aborted after the handshake?
Any guidance would be greatly appreciated!
The text was updated successfully, but these errors were encountered:
I am using Karate to test an API over HTTPS and have configured SSL with a custom trust store. The handshake between the client and server appears to be successful, but I am still encountering the following error:
java.net.SocketException: An established connection was aborted by the software in your host machine
Karate Configuration:
karate.configure('ssl', { trustAll: true });
karate.configure('ssl', {
keyStore: 'mykeystore.pfx',
keyStorePassword: 'changeit',
keyStoreType: 'pkcs12',
trustStore: 'cacerts',
trustStorePassword: 'changeit',
algorithm: 'TLSv1.2'
});
karate.configure('connectTimeout', 15000);
karate.configure('readTimeout', 15000);
I have added the server certificate to my trust store (.pem format) and updated the Karate configuration accordingly. The SSL handshake seems to be happening, but I still receive a SocketException when making a request.
What I Have Tried:
1. Verified that the server certificate is correctly added to the trust store.
2. Used trustAll: true to bypass certificate validation (still getting the error).
3. Checked the server logs, but no clear reason for the aborted connection.
4. Increased connectTimeout and readTimeout.
Questions:
• Is there anything missing in my Karate SSL configuration that could cause this issue?
• Are there any additional debugging steps I can take to diagnose why the connection is being aborted after the handshake?
Any guidance would be greatly appreciated!
The text was updated successfully, but these errors were encountered: