Sahi Pro - SSL Issues
Handshake failure
symptom
When connecting to a https site, any browser opened from the Sahi Dashboard fails to connect, with an error message
Received fatal alert: handshake_failure
. Sahi can not connect to the desired URL.resolution
Please check if you are able to connect to https://www.google.com via Sahi.
If not, then look at the instructions given here.
If you could access https://www.google.com, but not your other sites, follow what is given below.
The fact that you could connect to https://www.google.com means that the Sahi SSL mechanism itself is working fine.
It is possible that these servers have certificates with a weaker algorithm. To fix it, please do the following:
If not, then look at the instructions given here.
If you could access https://www.google.com, but not your other sites, follow what is given below.
The fact that you could connect to https://www.google.com means that the Sahi SSL mechanism itself is working fine.
It is possible that these servers have certificates with a weaker algorithm. To fix it, please do the following:
-
See what your java path is from the Controller->Info tab. You should see something like this:
Java Installed Directory: D:\Dev\Programs\jdk7\jre
-
Open
<jre_dir>/lib/security/java.security
file in a text editor. (In our case, it is D:\Dev\Programs\jdk7\jre\lib\security\java.security)
-
Look for
jdk.certpath.disabledAlgorithms
.
In our case, it looks like:
jdk.certpath.disabledAlgorithms=MD2
-
Comment it out, so that it looks like this:
#jdk.certpath.disabledAlgorithms=MD2
-
Restart Sahi, and check again.