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.

Facing problem setting up with HTTPS website

bsdeepubsdeepu Members
edited November -1 in Sahi - Open Source
Hi Everyone

I am newbie to Sahi, I followed the steps provided in the website to setup to automate HTTPS website.

I am getting the below popup everytime

"Firefox can't connect securely to sahi.example.com because the site uses a security protocol which isnt enabled"

Is there a settings or any configuration that i need to do? Please help

Thanks
Deepak

Comments

  • StringyLowStringyLow Members
    edited June 2008
    You need to create an SSL certificate using the keytool.exe in the Java "bin" directory.

    If you look in the Sahi Proxy window (the one that looks like command line output) you'll see an explanation of what is going on and below that is a command to run at a new command prompt in order to have the keytool make the SSL certificate for you.

    One thing to watch out for is that the keytool path doesn't have quotes around it. You'll want to copy and paste the command into a text editor, add the quotes, and then paste the command into a new command prompt. Or type the command in by hand and add the quotes as you go along.
  • bsdeepubsdeepu Members
    Thanks for the reply.

    I had created SSL certificate, but still i am getting the error message as "Firefox can't connect securely to sahi.example.com because the site uses a security protocol which isnt enabled"

    In my earlier question, i have mentioned that i followed the steps provided in the website to setup the HTTPS connection.

    I tried on different machines still i get the same popup message box.

    Is there any other solution pls?

    Thanks
    deepak
  • By the way, which browser are you using?
  • bsdeepubsdeepu Members
    Sorry i didnt mention my browser information in the question.

    I am using Firefox(2.0.0.14) browser,

    In IE7 browser the screen blanks out with no error message.
  • narayannarayan Administrators
    Did you create a certificate for sahi.example.com too?
    Which domain(s) did you create certificate(s) for?
  • bsdeepubsdeepu Members
    Is anything wrong with this ? line below

    keytool -genkey -alias yy.yyy.yy.yy -keypass sahipassword -storepass sahipassword -keyalg RSA -keystore C:\sahi\certs\yy_yyy_yy_yy -dname "CN=yy.yyy.yy.yy, OU=Systems, O=company name, L=Santa Monica, S=California, C=US"

    yy.yyy.yy.yy - is the ip address

    I did not create certificate for "sahi.example.com", i created certificate for an ipaddress
  • narayannarayan Administrators
    Yes you will have to create a certificate for sahi.example.com too. Actually everytime you see the SSL instruction on the console, check the name of the domain that it is reporting. Generally sites have a few certificates that may need to be created.
Sign In or Register to comment.