Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

SSL connect attempt failed #33

Open
moemilan opened this issue May 16, 2019 · 1 comment
Open

SSL connect attempt failed #33

moemilan opened this issue May 16, 2019 · 1 comment

Comments

@moemilan
Copy link

Webinject version: 1.94
Getting the following error in a test case running on RHEL server:


Content-Type: text/plain
Client-Date: Thu, 16 May 2019 10:06:25 GMT
Client-Warning: Internal response
500 Can't connect to xxx.xxx.xxx (SSL connect attempt failed)


And when using the GUI on a windows machine using the same test case getting
500 SSL negotiation failed

@CharlesSmothers
Copy link

CharlesSmothers commented Jan 27, 2020

I had the same problem. Webinject would not connect to a TLS 1.2 server.

This change allowed the connection to work:

Webinject.pm

--- a/Webinject/lib/Webinject.pm
+++ b/Webinject/lib/Webinject.pm
@@ -622,7 +622,13 @@ sub _get_useragent {
             }
         }
     }
-    my $useragent  = LWP::UserAgent->new(keep_alive=>$keepalive);
+    my $useragent  = LWP::UserAgent->new(
+        keep_alive=>$keepalive,
+        ssl_opts => {
+            verify_hostname => 0,
+        }
+    );
+

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants