18 January 2026:


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.

HTTPS site is not opening with sahi gateway

cragucragu Members
edited November -1 in Sahi - Open Source
Hi,

While using sahi, the https sites are not opening. Its giving the error "certificate not found" even after creating it manually.
--------
SAHI_HOME: ..
SAHI_USERDATA_DIR: ..\userdata
SAHI_EXT_CLASS_PATH:
--------
Sahi properties file = D:\RaguBackup on vinoj (Ast259)\Testing Tools\sahi latest
\sahi_20101103\sahi\config\sahi.properties
Sahi user properties file = D:\RaguBackup on vinoj (Ast259)\Testing Tools\sahi l
atest\sahi_20101103\sahi\userdata\config\userdata.properties
>>>> Sahi started. Listening on port: 9999
>>>> Configure your browser to use this server and port as its proxy
>>>> Browse any page and CTRL-ALT-DblClick on the page to bring up the Sahi Cont
roller
Nov 19, 2010 12:49:46 PM net.sf.sahi.ssl.SSLHelper getKeyManagerFactoryForRemote
Fetch
INFO: No SSL Client Cert specified



--------------------HTTPS/SSL START--------------------

Sahi is trying to create a certificate for domain:
203.200.157.188

If you are unable to connect to this HTTPS site, do the following:
Check on your filesystem to see if a file like
D:\RaguBackup on vinoj (Ast259)\Testing Tools\sahi latest\sahi_20101103\sahi\use
rdata\certs\203_200_157_188
has been created.

If not, then create it by running the command below on a command prompt.
Note that you need 'keytool' to be in your path.
keytool comes with the JDK by default and is present in <JAVA_HOME>/bin.

Once you create that file, SSL/HTTPS should work properly for that site.


-------COMMAND START-------

"keytool" -genkey -alias 203.200.157.188 -keypass "sahipassword" -storepass "sah
ipassword" -keyalg RSA -keystore "D:\RaguBackup on vinoj (Ast259)\Testing Tools\
sahi latest\sahi_20101103\sahi\userdata\certs\203_200_157_188" -dname "CN=203.20
0.157.188, OU=Sahi, O=Sahi, L=Bangalore, S=Karnataka, C=IN" -validity 3650

-------COMMAND END-------

The files in certs can be copied over to other systems to make ssl/https work th
ere.

--------------------HTTPS/SSL END--------------------



Nov 19, 2010 12:49:47 PM net.sf.sahi.ssl.SSLHelper getKeyManagerFactory
WARNING:
----
Certificate not found: D:\RaguBackup on vinoj (Ast259)\Testing Tools\sahi latest
\sahi_20101103\sahi\userdata\certs\203_200_157_188
----


I am not able to fix this from the previous topics. please help to solve this.

Thanks
Ragu

Comments

  • narayannarayan Administrators
    Hi Cragu,

    Can you please paste the contents of the Info tab here?

    Regards,
    Narayan
  • Hi Narayan,

    Below is the content from the browser
    
    Internet Explorer cannot display the webpage 
       
       Most likely causes:
    You are not connected to the Internet. 
    The website is encountering problems. 
    There might be a typing error in the address. 
     
       What you can try: 
         Diagnose Connection Problems  
     
         More information 
    
    This problem can be caused by a variety of issues, including: 
    
    Internet connectivity has been lost. 
    The website is temporarily unavailable. 
    The Domain Name Server (DNS) is not reachable. 
    The Domain Name Server (DNS) does not have a listing for the website's domain. 
    If this is an HTTPS (secure) address, click Tools, click Internet Options, click Advanced, and check to be sure the SSL and TLS protocols are enabled under the security section. 
    
    For offline users
    
    You can still view subscribed feeds and some recently viewed webpages.
    To view subscribed feeds 
    
    Click the Favorites Center button , click Feeds, and then click the feed you want to view. 
    
    To view recently visited webpages (might not work on all pages) 
    
    Click Tools , and then click Work Offline. 
    Click the Favorites Center button , click History, and then click the page you want to view. 
    
     
    

    Regards
    Ragu
  • Hi Narayan,

    Apologies, the issue because i have not created the certificate correctly. Now it is working after creating the correct certificate.

    Thanks for the support.

    Regards
    Ragu
This discussion has been closed.