Charles: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 37: Line 37:


1. [[Charles#Export_the_Root_Certificate|Export the root certificate]] in ~tmp.
1. [[Charles#Export_the_Root_Certificate|Export the root certificate]] in ~tmp.
2. Go to Preferences -> Advanced -> Manage Certificates.
3. Go to the Trusted Root Certification Authorities tab. If on Mac, you will be sent to Mac Keychain Access. If Charles was previously used to "Install Charles Root Certificate", the root certificate should already be available there and there should be nothing else to do.


==Recording Settings==
==Recording Settings==


Include/Exclude
Include/Exclude

Revision as of 01:30, 14 February 2019

External

Overview

Operations

Configure SSL Proxying

Proxy -> SSL Proxy Settings -> SSL Proxying

and then list the target location you want to proxy for.

Examples:

  • localhost.apple.com:443
  • kibana.apps.openshift.novaordis.io:443

Export the Root Certificate

Exporting the root certificate is necessary when we proxy a Java application that sends HTTPS requests and we need Charles to be able to look inside those requests. All Java applications that use HttpClient will work based on this procedure.

To export: Help -> SSL Proxying -> Save Charles Root Certificate

Use the default format "Base 64 encoded certificate (.crt)".

The certificate thus saved can be used without any modification as part of the following procedure:

Configure a Java HTTP Client to Accept Self-Signed Certificates

Install the Root Certificate in Chrome

1. Export the root certificate in ~tmp.

2. Go to Preferences -> Advanced -> Manage Certificates.

3. Go to the Trusted Root Certification Authorities tab. If on Mac, you will be sent to Mac Keychain Access. If Charles was previously used to "Install Charles Root Certificate", the root certificate should already be available there and there should be nothing else to do.

Recording Settings

Include/Exclude