18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
How to Automating SSL / HTTPS sites ?
Hi ,
Can any one help me to get out of this .
Im trying to record and play a HTPPS site , but when i launch browser though SAHI controller the following error displayes
Steps folllowed to resolved
1. Added the url in trusted site
2. Add the certificate using the SSLManager
OS - windows 7
Browser - IE8 , FF3.6.3, SAFARI 3
Please help on this , its very urgent
Thanks in advance
Sahi Error - java.security.cert.CertificateException: Certificates does not conform to algorithm constraints
Sahi could not connect to the desired URL
Either the remote server is down or not reachable
If the web site is not accessible even when the browser proxy configuration is removed, it means the server is down.
or
You need an external proxy to be configured.
If you normally require to use another proxy to connect to external websites, you need to configure Sahi to use that proxy.
You can configure the external proxy by editing
<sahi_root>/userdata/config/userdata.properties and setting these properties:
ext.http.proxy.enable=true
ext.http.proxy.host=external_proxy_server_hostname_or_ip
ext.http.proxy.port=external_proxy_server_port
If your proxy needs authorization, you should set these properties too.
ext.http.proxy.auth.enable=true
ext.http.proxy.auth.name=proxy_authorization_username
ext.http.proxy.auth.password=proxy_authorization_password
You should do the same with ext.https settings for https sites.
To bypass external proxy for some web addresses, like local addresses, set
ext.http.both.proxy.bypass_hosts=localhost|127.0.0.1|*.internaldomain.com
Can any one help me to get out of this .
Im trying to record and play a HTPPS site , but when i launch browser though SAHI controller the following error displayes
Steps folllowed to resolved
1. Added the url in trusted site
2. Add the certificate using the SSLManager
OS - windows 7
Browser - IE8 , FF3.6.3, SAFARI 3
Please help on this , its very urgent
Thanks in advance
Sahi Error - java.security.cert.CertificateException: Certificates does not conform to algorithm constraints
Sahi could not connect to the desired URL
Either the remote server is down or not reachable
If the web site is not accessible even when the browser proxy configuration is removed, it means the server is down.
or
You need an external proxy to be configured.
If you normally require to use another proxy to connect to external websites, you need to configure Sahi to use that proxy.
You can configure the external proxy by editing
<sahi_root>/userdata/config/userdata.properties and setting these properties:
ext.http.proxy.enable=true
ext.http.proxy.host=external_proxy_server_hostname_or_ip
ext.http.proxy.port=external_proxy_server_port
If your proxy needs authorization, you should set these properties too.
ext.http.proxy.auth.enable=true
ext.http.proxy.auth.name=proxy_authorization_username
ext.http.proxy.auth.password=proxy_authorization_password
You should do the same with ext.https settings for https sites.
To bypass external proxy for some web addresses, like local addresses, set
ext.http.both.proxy.bypass_hosts=localhost|127.0.0.1|*.internaldomain.com
This discussion has been closed.
Comments
I have followed all the steps as showen in the video , Still im facing the same problem
site im using url "https" "//stnweb.cas.org"
On SSLManager the site has installed successfully
When i'm operating on safari the follwing error displayed while opening the controller
Safari can’t open the page “http" + "://sahi.example.com/_s_/spr/controller7."+"htm” because it can’t find the server “sahi.example.com”.
Please log in and click on the "Post New Topic "
Safari should be able to accept IE certificates.Can you install the certificates on IE and check if they are installed on Safari as well?
Also, check if you are able to access this site on IE8?
Regards
Sumtira
I am able to open the controller in safari with the provided url.
Like sumitra said IE certificates are valid for Safari too. In IE, you can overcome this issue by accepting "Display security warning" .
Please refer http://www.youtube.com/watch?v=zPZH5L-jkRA and the forum post http://sahi.co.in/forums/viewtopic.php?id=1627
Fixing this issue in IE, helps to automate https in other browsers.
Also, The problem might be due to the external proxy used in your network. Please ensure all the external proxy confriguration's are set correctly in Sahi/userdata/config/userdata.properties.
Regards
Theeran.
Thanks a lot for your response.
I have tried the video , but still i'm facing the problem in the IE and FF as well
Can please give some more guidance on How to accept "Display security warning" .
Also, configuring the external proxy used in network in Sahi/userdata/config/userdata.properties.
Its really important for my client presentation on SAHI tool
Regards
Tarun.
This the error log on the cmd
Caused by: java.security.cert.CertificateException: Certificates does not confor
m to algorithm constraints
at sun.security.ssl.AbstractTrustManagerWrapper.checkAdditionalTrust(Unk
nown Source)
at sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(Unkno
wn Source)
... 23 more
Dec 08, 2011 12:19:43 PM net.sf.sahi.RemoteRequestProcessor processHttp
WARNING: Returning CannotConnectResponse for: "https" concate "://stneasy.cas.org"
This how my userdata.properties look like
!**
! * Sahi - Web Automation and Test Tool
! *
! * Copyright 2006 V Narayan Raman
! *
! * Licensed under the Apache License, Version 2.0 (the "License");
! * you may not use this file except in compliance with the License.
! * You may obtain a copy of the License at
! *
! * http://www.apache.org/licenses/LICENSE-2.0
! *
! * Unless required by applicable law or agreed to in writing, software
! * distributed under the License is distributed on an "AS IS" BASIS,
! * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
! * See the License for the specific language governing permissions and
! * limitations under the License.
! **
# dirs. Relative paths are relative to userdata dir. Separate directories with semi-colon
scripts.dir=scripts;
# default log directory.
logs.dir=logs
# Directory where auto generated ssl cerificates are stored
certs.dir=certs
# Use external proxy server for http
ext.http.proxy.enable=false
ext.http.proxy.host=
ext.http.proxy.port=
ext.http.proxy.auth.enable=false
ext.http.proxy.auth.name=kamlesh
ext.http.proxy.auth.password=password
# Use external proxy server for https
ext.https.proxy.enable=false
ext.https.proxy.host=
ext.https.proxy.port=
ext.https.proxy.auth.enable=false
ext.https.proxy.auth.name=kamlesh
ext.https.proxy.auth.password=password
# There is only one bypass list for both secure and insecure.
ext.http.both.proxy.bypass_hosts=localhost|127.0.0.1|*.internaldomain.com
Kindly follow the below link and check if this solves your issue.
http://sahi.co.in/w/configuring-an-external-proxy
http://sahi.co.in/w/https-ssl
Regards
Sumitra
Regards,
Narayan
Thanks for the help
Its working fine with Java 6