Skip to content
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

Provide an easier way to get ZAP root cert out of a docker image #5214

Closed
psiinon opened this issue Feb 8, 2019 · 5 comments
Closed

Provide an easier way to get ZAP root cert out of a docker image #5214

psiinon opened this issue Feb 8, 2019 · 5 comments

Comments

@psiinon
Copy link
Member

psiinon commented Feb 8, 2019

Proxying a local browser through ZAP running in a docker image is a good option, especially if you dont have / want java installed locally.
However you need to be able to import the ZAP root CA into your browser, and getting it out of the docker image is non trivial.
Anything that can be done to make this easier would help - please add ideas to this issue.
See this thread for background https://groups.google.com/d/msg/zaproxy-users/1dBs5fkz1AY/nVkNNuI1GgAJ

@psiinon
Copy link
Member Author

psiinon commented Feb 8, 2019

One option would be to have a command line option (eg -dumprootcert filename ?) which would output the cert to the file specified which could be on a mounted directory.
Any other suggestions?

@psiinon
Copy link
Member Author

psiinon commented Feb 8, 2019

Another option would be to make it possible to launch a browser from the command line using selenium that is set up to proxy through ZAP and ignore cert warnings, eg:

./zapLaunchBrowser.sh -proxy localhost:8080 firefox

Note that would require ZAP (or some of its jars) to be installed locally and java to be available.

@thc202 thc202 added the Docker label Feb 8, 2019
@zestysoft
Copy link

Simon,

What about including a script in the docker image that could be executed externally?
I.E.
sudo docker exec -it (name of running docker instance) /zap/getCACert.py api-key

@psiinon
Copy link
Member Author

psiinon commented Feb 15, 2021

This was fixed a while ago, as per described on https://www.zaproxy.org/blog/2021-02-03-run-zap-without-java-using-docker-and-webswing/

@psiinon psiinon closed this as completed Feb 15, 2021
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants