charles-proxy

How to add network security configuration to enable Charles proxy SSL in Nougat?

不想你离开。 提交于 2019-12-10 10:04:38
问题 I am trying to enable Charles Proxy SSL on my Samsung s8 running on Android Nougat but don't know how to. Before Nougat am able to successfully record the charles sessions for multiple apps on my device. Have followed this and this to set up everything but it's the first step to follow while enabling Charles in Android. My use case is different than those in other questions because am monitoring third party apps and I do not have any AndroidManifest.xml or res directory to create network

Custom CA Certificate in Charles without a password

三世轮回 提交于 2019-12-09 16:51:07
问题 I'm using the excellent Charles proxy to make web debugging easier. I'm using it's SSL proxying abilities, and have installed the generic CA Certificate that it comes bundled with. While this works, it's insecure because as long as my browser trusts this certificate, I am vulnerable to a MIM attack. I'm trying to use OpenSSL to create a "Custom CA Certificate" since Charles allows to fix this. These are the steps I'm following: NAME=daaku-ca openssl genrsa -out $NAME.key 1024 openssl req -new

Handshake alert: unrecognized_name error

安稳与你 提交于 2019-12-09 05:37:36
问题 I am using Charles 3.7 to debug SSL connections. I was able to view most of the HTTPS connections, however there is 1 or 2 sites that returned "SSLProtocol: handshake alert: unrecognized_name" when I try to debug it, and I was unable to load the website with Charles on. I am able to do so using Fiddler. Any ideas on how to resolve this issue? Thanks. 回答1: I came across this when using the latest beta Charles 3.10b9 on 10.10. We fixed by using a similar method to Shade's answer: I opened info

How to use Charles' rewrite tool only on certain methods?

允我心安 提交于 2019-12-08 22:29:37
问题 I'm using Charles' Rewrite Tool to change 200 responses to 400 in order to test failing API calls. However, the rewrite is triggering on the Options request. I'd like to only have it trigger on the Get or Post requests and allow the Options requests through. Is this possible using Charles? 回答1: I think Charles does not have this option, which is really a pitty, because it seems to be easy to implement and it would open the doors to the API world. I would suggest you to ask Karl (the author

How to capture http traffic with Android Studio 2.1 and Charles proxy?

▼魔方 西西 提交于 2019-12-08 07:40:34
问题 I have updated the Android Studio IDE to the last version 2.1, and I want to capture the https traffic from the Android Emulator with the Chalres Proxy. It looks that the emulator changed with the Android Studio 2.1, and I can't find the way to capture http traffic with charles proxy. In Stack Overflow there are some similar question but these are on older Android Studio versions, and I can´t find in that answers the solution to my problem. 回答1: Follow this instruction to use Charles proxy

How do I configure a Ruby Mechanize agent to work through the Charles web proxy?

久未见 提交于 2019-12-07 06:13:54
问题 I'm writing an "automatically fill in the forms" app using Ruby / Mechanize. It almost works. I can use the wonderful Charles web proxy to see the exchange between the server and my Firefox browser. Now I want to use Charles to see the exchange between the server and my app. Charles proxies on port 8888. Assume that the server is at https://my.host.com. One thing that does NOT work is: @agent ||= Mechanize.new do |agent| agent.set_proxy("my.host.com", 8888) end This results in a Net::HTTP:

Using Charles and SSL Apple push address

给你一囗甜甜゛ 提交于 2019-12-05 19:59:32
I have to confirm that my PHP code for sending push notification is working with a proxy. I installed Charles and I'm able to watch all my web traffic through a proxy (127.0.0.1:8888). Now I would like to see if my script is correctly working for push notifications. I have : stream_context_set_option($ctx, 'http', 'proxy', 'tcp://127.0.0.1:8888'); $fp = stream_socket_client('ssl://gateway.sandbox.push.apple.com:2195', $err,$errstr, 60, STREAM_CLIENT_CONNECT, $ctx); I'm getting my push notification but I can't see what is happening in Charles. So my script is not using proxy ... Do you know why

How do I configure a Ruby Mechanize agent to work through the Charles web proxy?

我的未来我决定 提交于 2019-12-05 10:31:16
I'm writing an "automatically fill in the forms" app using Ruby / Mechanize. It almost works. I can use the wonderful Charles web proxy to see the exchange between the server and my Firefox browser. Now I want to use Charles to see the exchange between the server and my app. Charles proxies on port 8888. Assume that the server is at https://my.host.com . One thing that does NOT work is: @agent ||= Mechanize.new do |agent| agent.set_proxy("my.host.com", 8888) end This results in a Net::HTTP::Persistent::Error : ...lib/net/http/persistent.rb:579:in `rescue in connection_for': connection refused:

Custom CA Certificate in Charles without a password

旧城冷巷雨未停 提交于 2019-12-04 05:02:28
I'm using the excellent Charles proxy to make web debugging easier. I'm using it's SSL proxying abilities, and have installed the generic CA Certificate that it comes bundled with. While this works, it's insecure because as long as my browser trusts this certificate, I am vulnerable to a MIM attack. I'm trying to use OpenSSL to create a "Custom CA Certificate" since Charles allows to fix this. These are the steps I'm following: NAME=daaku-ca openssl genrsa -out $NAME.key 1024 openssl req -new -key $NAME.key -out $NAME.csr openssl x509 -days 3650 -signkey $NAME.key -in $NAME.csr -req -out $NAME

Handshake alert: unrecognized_name error

余生颓废 提交于 2019-12-03 07:01:08
I am using Charles 3.7 to debug SSL connections. I was able to view most of the HTTPS connections, however there is 1 or 2 sites that returned "SSLProtocol: handshake alert: unrecognized_name" when I try to debug it, and I was unable to load the website with Charles on. I am able to do so using Fiddler. Any ideas on how to resolve this issue? Thanks. I came across this when using the latest beta Charles 3.10b9 on 10.10. We fixed by using a similar method to Shade's answer: I opened info.plist in Xcode and did the following: Under the JVMOptions (as oppose to VMOptions) key add the string: