-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSL certificate configuration via CLI #2252
Comments
Proxyman 5.13 or earlier, it's at
|
Thanks. I didn't know it's already saved as a file. I'll use that. On 2, I think I wasn't clear. I'm not using any Proxyman root cert. It's a new custom root cert, that EKS API responds with, that I now need to trust. Here's an example of the flow:
If I am to do this via Proxyman, I need Proxyman to trust that new custom CA cert, so my application can talk to Kubernetes. This CA cert is not known in advance for me to do anything with it. I only get it, after authenticating to EKS. Am I making sense? I can try to rephrase again if not. 🙂 |
yes, it makes sense. I'm not sure if you're aware that You can do it with GUI temporarily.
For CLI, I will add this feature for you 👍 |
@sharat87 let's try this Beta build: Changelog
Help/Applications/Proxyman.app/Contents/MacOS/proxyman-cli install-root-cert --help
OVERVIEW: Install a custom .p12 root certificate into Proxyman and Keychain Access if needed.
USAGE: proxyman-cli install-root-cert <path> [--password <password>] [--trust]
ARGUMENTS:
<path> Path to the .p12 certificate file
OPTIONS:
-p, --password <password>
Password for the .p12 certificate
--trust Trust the certificate in System Keychain (requires sudo)
--version Show the version.
-h, --help Show help information. Install and trust/Applications/Proxyman.app/Contents/MacOS/proxyman-cli install-root-cert <certificate_path> --password <yourpassword> --trust Install but not trust (you might need to trust it manually in the Keychain)/Applications/Proxyman.app/Contents/MacOS/proxyman-cli install-root-cert <certificate_path> --password <yourpassword> |
@NghiaTranUIT, thanks for quick turnaround here. Confirming if I understand this right, if I don't add |
Sorry, two more questions.
|
yes, but I recommend trusting it, otherwise you might get SSL Error.
yes, let's give it a try
No, this is not supported yet |
Description
proxyman-cli
.proxyman-cli
.Why this feature/change is important?
On 1, I often run Docker containers that I set the proxy environment variables to point to Proxyman. But I need a quick "automate-able" way to give the CA to the container for it to trust. So if there's a
proxyman-cli export-ca
that prints out the contents of the CA cert used by Proxyman as a.pem
, that'd be perfect.On 2, my application uses Kubernetes API on AWS EKS clusters. Authenticating there means that EKS responds with a custom CA cert that I need to trust to make further calls to the Kubernetes API endpoint. If I am to use Proxyman for this, I need to have Proxyman trust that CA, dynamically at runtime, so that Proxyman can talk to the Kubernetes API endpoint.
I'm achieving both of these with
mitmproxy
today, but I'd like to use Proxyman instead. The first is solved becausemitmproxy
's CA cert is just a file in~/.mitmproxy
so I can do as I wish. The second is solved by appending the cert dynamically tomitmproxy
's certifi trust store dynamically, and refreshingmitmproxy
's SSL context cache (via a custom add-on).But with Proxyman, I don't think this is doable today. I'd really like to see these so I can move to Proxyman since this has better breakpoint and scripting functionality.
Thanks!
The text was updated successfully, but these errors were encountered: