Показаны сообщения с ярлыком end-off testing. Показать все сообщения
Показаны сообщения с ярлыком end-off testing. Показать все сообщения

среда, 17 января 2018 г.

Charles setup and root certificate installation

Charles Setup

Installation

  1. Download an up-to-date version for your system on charlesproxy.com/download/
     
  2. Launch the installation process with respect to your operational system;
     
  3. Follow the instructions till completion of the installation process.

First launch

NOTE:in order to use Charles, user’s PC or Laptop should have WiFi network module (in other words – should be compatible to connect to internet via WiFi). If you use a PC without WiFi network module, you should upgrade your hardware respectively. E.g. install WiFi PCI card or WiFi USB adapter.

1. If you are connected to internet via WiFi go to the next step.
If not (e.g. you’re connected via Ethernet), please connect to WiFi either. You may keep both Ethernet and WiFi. When properly connected on Windows you see similar situation:
         

2. Launch the Charles.
NOTE: right after the launching Charles will try to catch interactions between operational system and external network. User will not be able to see any data in Charles because a certificate is not installed yet. At the same time user will not be able to use internet.
To avoid such a situation, turn off windows proxy for a while. To do so use combination Ctrl+Shif+P or click on Proxy in toolbar and untick Windows Proxy:
          

3. In order to log and see any exchange thrown via Charles, we need to proxy all possible locations.
Go to Proxy / SSL Proxying Settings, click on Add, type Wildcard * for both Host and Port fields. Click OK in Edit Location popup and OK again in SSL Proxying Settings popup.
         
Setup root certificate
  1. Go to Help / SSL Proxying / Install Charles Root Certificate:
  2. Click on Install Certificate…, keep Current User as a Store Location, click on Next:
  3. Keep Automatically select the certificate store… as a location and click on Next;
  4. Click on Finish in Completing the Certificate Import Wizard;
  5. Click on OK in The import was successful popup.

Charles debugging proxy application. Introduction

This article is a starting point for thread devoted to great tool - Charles Debugging Proxy Application.
Please note: all links herein are direct and safe, not hide any promo-keys, referrals or ads.I just really enjoy using this tool and happy to share information about it.





General information

What is the purpose of Charles

Charles is a web debugging application designed for intercepting and logging the traffic between a client and a server. In general, such an information helps to investigate:
  • where (to which hosts) does the client send the requests;
  • what is an actual header and content of the requests;
  • what is the server’s response;
  • what content does the response have;
  • when does all this happen (what is a sequence of requests-responses in time).

What does Charles consist from

Charles is a single desktop application. It can be used standalone (w/o network connection) e.g. for reading and analyzing logs, which were saved previously. Application is available in versions for MS Windows (32 and 64 bit), MacOS and Linux (32 and 64 bit).
Add-on for Mozilla Firefox browser is also available. It helps to configure Firefox automatically for been used with Charles.
Charles also has a web-based interface. Literally it means that user may observe Charles as a web page in browser. That may be extremely useful for automation test purposes via Selenium Driver.

How does it work

Briefly – Charles comes an intermediate chain between a client (desktop browser, iOS native application, mobile browser in Android) and a remote server.



Charles uses trust certificates, which allows not only “listen” the exchange between client and server, but also “understand” most of the transmitted information and show it to a user in multiple friendly views.

How can I get and use it

Charles has a full functional trial version. The limitation of trial version is session length not longer than 30 minutes. Also during work in trial a user faces warnings several times per session which lasts several second.
And one more thing, the trial version has a warning that trial will expire in 30 days. Actually for all Charles versions up to 4.1.2 it never happens.
There are no other limitations in using non-registered version of Charles.
Download an up-to-date version for your system on www.charlesproxy.com/download/
Check with your local network administrator or department manager if you have a corporate license key.
To buy a license key, please refer to www.charlesproxy.com/buy/
Charles authors are constantly improving their product and they are doing great! So, it’s really appreciated to buy a license:



Add-on for Firefox is available here: addons.mozilla.org/en-US/firefox/addon/charles-proxy/
Charles is developed by XK72. In case of any questions the developers and founders of Charles may be reached at www.xk72.com/ or via support section of www.charlesproxy.com .
Instructions on installation of the program and setting up a root certificate are available in the Next articles.