Need to give API key in Command line when running ZAP in Daemon mode.

1,008 views
Skip to first unread message

Salman Khwaja

unread,
Sep 27, 2016, 7:10:21 AM9/27/16
to OWASP ZAP User Group
Hi,
I am running OWASP ZAP by giving the following command in powershell. 

./Zap.bat -daemon -host localhost -port 8090

Can I instruct ZAP to open it's daemon by giving a specific API key as well. I need to run ZAP on multiple agents through automated powershell. API key is different machines. Is there any way to give API key in command line. 

thc...@gmail.com

unread,
Sep 27, 2016, 7:13:29 AM9/27/16
to zaprox...@googlegroups.com
Hi.

You can specify the key with:
-config api.key=change-me-9203935709

(from https://github.com/zaproxy/zaproxy/wiki/FAQapikey )

Best regards.
> --
> You received this message because you are subscribed to the Google
> Groups "OWASP ZAP User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to zaproxy-user...@googlegroups.com
> <mailto:zaproxy-user...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/zaproxy-users/2a70b9a4-fe19-4466-9b85-adfaf5e231aa%40googlegroups.com
> <https://groups.google.com/d/msgid/zaproxy-users/2a70b9a4-fe19-4466-9b85-adfaf5e231aa%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Salman Khwaja

unread,
Sep 28, 2016, 2:15:59 AM9/28/16
to OWASP ZAP User Group
Thanks a bunch. This group is awesome. !!!!.
Reply all
Reply to author
Forward
0 new messages