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 support

pranitapranita Members
edited August 2008 in Sahi - Open Source
Hi everyone,

I want to automate a HTTPS website, using IE 7.0.

But by using SAHI tool, m not able to open any https site,

Could you please tell me, how does sahi support to HTTPS..What are the required settings that need to be changed..


Thanks

Comments

  • You need to create the SSL certificate for the websites.

    Look in the Sahi Proxy for something like this:

    COMMAND START
    keytool -genkey -alias adwords.google.com -keypass sahipassword -storepass sahipassword -key
    alg RSA -keystore C:\Documents and Settings\example\Desktop\sahi\certs\adwords_google_com -dname "CN=adwords.google.com,
    OU=Sahi, O=Sahi, L=Bangalore, S=Karnataka, C=IN"

    COMMAND END

    Do this:
    1. Open a command prompt for the directory where your keytool.exe is located. It's probably in C:\Program Files\Java\jre1.6.0_0x\bin
    2. Select the command between "COMMAND START" and "COMMAND END".
    3. Put quotation marks around the C:\Documents and Settings\example\Desktop\sahi\certs\adwords_google_com part
    4. Run the command on it's own command line

    The finished command will look like this:

    keytool -genkey -alias adwords.google.com -keypass sahipassword -storepass sahipassword -key
    alg RSA -keystore "C:\Documents and Settings\example\Desktop\sahi\certs\adwords_google_com" -dname "CN=adwords.google.com,
    OU=Sahi, O=Sahi, L=Bangalore, S=Karnataka, C=IN"

    If you want to make the SSL key generation automatic, modify the keytool.path entry of the sahi.properies file (in the Sahi config directory) to look something like this:

    keytool.path="C:\\Program Files\\Java\\jdk1.6.0_06\\bin\\keytool.exe"

    Welcome and keep posting questions!
Sign In or Register to comment.