LoginSignup
0
0

More than 5 years have passed since last update.

mitmproxy + curl で ssl通信のテスト

Last updated at Posted at 2017-06-22

mitmproxy用のスクリプトのデバッグなんかで使えます

1. mitmproxyを起動した状態で, プロキシを指定してcurlで証明書をダウンロード

curl -x 127.0.0.1:8080 'http://mitm.it/cert/pem' > /tmp/mitm.pem

2. curlの--cacertオプションで 1.のpemを指定してリクエストを投げる

curl --cacert /tmp/mitm.pem -x 127.0.0.1:8080 'https://ja.wikipedia.org/wiki/HTTPS'
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0