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.

Connecting To HTTPS With Keystore Generated By Another Program

pembertonrw82pembertonrw82 Members
edited November -1 in Sahi - Open Source
We are currently trialing Sahi with auto testing one of our web applications over HTTPs however I have become stuck because we have to connect to the website using a certificate that has been signed by a specific certificate authority otherwise the request to access the URL gets rejected.

So I was wondering if it is possible to :

1) Configure Sahi to use a specific client certificate (PFK/PKCS12) that has been created by us without needing to create its own keystore
2) Can we use an existing keystore that has not been generated by Sahi

If the above is already possible would it be possible to post how it can be done?

Comments

  • Create your own certificates and move the certificate file in to <sahi-basepath>\userdata\certs directory. if the certificate file exists for the https sites in certs directory, then keytool wont create certicates by its own.
  • pembertonrw82pembertonrw82 Members
    edited January 2010
    Thanks for the quick reply Venky. I'm probably doing something stupid, but I have created the keystore and I have also specified a seperate client certificate for it to use however when I try to connect using Sahi it reports:

    Sahi Error - Software caused connection abort: recv failed

    I can connect fine when using the client certificate (.pfx) directly, the config settings can be found below:

    # Uncomment the following lines to use a client certificate.
    # If there is no password, do not uncomment the password line.
    # keystore type can be JKS, PKCS12 etc.
    ssl.client.keystore.type = PKCS12
    ssl.client.cert.path = ../certs/MyCert
    ssl.client.cert.password = password

    Would the client certificate need to be imported into the keystore for it to use? When it refers to a client certificate does it mean the keystore or the pfx cert?
Sign In or Register to comment.