SSL Proxy/Charles and Android trouble -
i want test https calls android device using charles proxy tool. need see raw request/response contents debugging app. i've configured charles adding host , port under "proxy settings" -> ssl tab. when run app, ssl calls seems disappear charles. 1 has idea how fix issue. charles documentation doesn't seem have information android devices.
for android7
refer to: how charles proxy work android 7 nougat?
for android version below android7
from computer, run charles:
open proxy settings: proxy -> proxy settings, proxies tab, check "enable transparent http proxying", , remember "port" in heart.
ssl proxy settings:proxy -> ssl proxy settings, ssl proxying tab, check “enable ssl proxying”, , add . locations:
open access control settings: proxy -> access control settings. add local subnet authorize machines on local network use proxy machine/mobile.
in android phone side:
get charles ssl certificate. visit url mobile browser: http://charlesproxy.com/getssl
in “name certificate” enter whatever want
accept security warning , install certificate. if install successful, see sth that: in phone, settings -> security -> trusted credentials:
configure mobile: go settings -> wireless & networks -> wifi -> connect or modify network, fill in computer ip address , port(8888):
done.
then can have test on mobile, encrypted https request shown in charles:
Comments
Post a Comment