Skip to content

Instantly share code, notes, and snippets.

@Soontao
Created April 7, 2022 05:44
Show Gist options
  • Save Soontao/add25ba424c0a7f2e4fad8aec3092162 to your computer and use it in GitHub Desktop.
Save Soontao/add25ba424c0a7f2e4fad8aec3092162 to your computer and use it in GitHub Desktop.
Generate HTTPS certificate for proxy
python3 -m proxy.common.pki gen_private_key --private-key-path https-key.pem
python3 -m proxy.common.pki remove_passphrase --private-key-path https-key.pem
python3 -m proxy.common.pki gen_public_key --private-key-path https-key.pem --public-key-path https-cert.pem
@Soontao
Copy link
Author

Soontao commented Apr 7, 2022

# test
curl -x https://127.0.0.1:8899 --proxy-cacert https-cert.pem https://httpbin.org/get

@Soontao
Copy link
Author

Soontao commented Apr 7, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment