Hi Simon,
Thanks a lot for your quick reply!
Some things still look a bit strange:
1) accessUrl() does not seem to work with https urls. Even for hosts which work fine in the proxy mode and can also be scanned via the gui ("Active Scan single URL") I get an error like this one:
org.zaproxy.clientapi.core.ClientApiException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at org.zaproxy.clientapi.core.ClientApi.accessUrlViaProxy(ClientApi.java:331)
at org.zaproxy.clientapi.core.ClientApi.accessUrl(ClientApi.java:84)
2) accessUrl() works for http hosts, but clientApi.ascan.scan(url, "false", "true") doesn't. I don't get an exception and I can even see "scanner started", entries for different scans and also "scanner completed" in the ZAP console, but the scanner run takes almost zero seconds and I can not see a single HTTP request over the network (I used wireshark).
Again - when I perfom the same action "Active Scan single URL" for the same url via the ZAP gui, everything is fine, the scanner takes some seconds, but it also produces results and I can also see all the http requests in wireshark.
Could you please give me a hint where I could start debugging these issues?
Kind regards,
Markus