Skip to content

Demonstration of the use of a man-in-the-middle (MITM) proxy for testing with two-way SSL authentication

Notifications You must be signed in to change notification settings

katalon-studio-samples/mitm-proxy-demo

Repository files navigation

Katalon Studio mitmproxy Demo

This project demonstrates how to use mitmproxy (or really any similar proxy) with Katalon Studio. In particular, it contains examples of configuring Desired Capabilities for a Chrome browser to connect to a proxy running locally on port 8080. It contains examples for doing that configuring both in Katalon Studio project settings and in code.

Requirements

Installing and configuring mitmproxy

You should be able to follow the standard instructions for installing and configuring mitmproxy to run on your platform.

Configuring project proxy settings

You can see the project settings that configure Katalon Studio scripts to connect to mitmproxy running locally on port 8080 by selecting Project / Settings then Desired Capabilities / Web UI / Chrome in the Project Settings dialog.

Dictionary_Property_Builder_and_Project_Settings_and_Katalon_Studio_-_8_5_0-43c337de_-_mitm_proxy_demo_-__Location___Users_coty_Katalon_Studio_mitm-proxy-demo_

Configuring proxy via code

You can also configure proxy usage in a Katalon Studio test using code. An example can be seen in the Proxy Test - Code test case in this project.

Bypassing SSL warnings

This project also shows how to bypass SSL warnings that are normally displayed by browsers when the certificate for an SSL connection does not match the target domain name.

There is also a test case named "Proxy Config" which will open a browser window where one can install a certificate that will allow the mitmproxy to generate certificates on-the-fly to bypass these browser checks. More details on this process can be found here.

About

Demonstration of the use of a man-in-the-middle (MITM) proxy for testing with two-way SSL authentication

Topics

Resources

Stars

Watchers

Forks