Hello All,
can you update the zap user group with this responce for following case?
https://groups.google.com/g/zaproxy-users/c/v-cI0U87feE/m/g1QfoFM9AAAJ
we are trying to use our internal certificate but zap is not accepting it. In the screenshot of certificate i want to change the comman name to our internal hostname. and issued by need to be changed to organization info.
If we want use a custom CA certificate, how can we use it for zap and enable it?
Can someone assist us in fixing this issue?
Hey Simon,
our requirements:
we want to enable the https encryption for zap ui browser, in the browser certificate viewer of zap UI, we see our internal hostname but "Issued by" needs to be changed to our organization info. In our all other apps except zap the certificate viewer shows our organization info, so we're trying to enable same thing here.
work around:
from the commandline, we are loading the root CA certificate, using the cmd "/opt/zap/zap.sh -daemon -certload /etc/ssl/certs/zaproxy.pem -host dns.hostname.test.local -port 8081 -config api.key=ZAPROXY -config api.addrs.addr.name=.* -coig api.addrs.addr.regex=true"
cert is loaded as it shows in the log [ZAP-daemon] INFO org.parosproxy.paros.CommandLine - Root CA certificate loaded from /etc/ssl/certs/zaproxy.pem
In the certificate viewer, we are not able to see our ogranization related issued info, instead it shows the ZAP organization related info in the "Issued" parts.
here is the zaproxy.pem file info:
#zaproxy.body
-----BEGIN CERTIFICATE-----
xxxxddwucbsh...
xxxx
dhehhe
-----END CERTIFICATE-----
#zaproxy.key
-----BEGIN PRIVATE KEY-----
xxxxjdieddns...
xxxx
nxjshcjsncdcn+g==
-----END PRIVATE KEY-----
#zaproxy.chain
-----BEGIN CERTIFICATE-----
xxxxxncjdcdj....
xxxx
dkwjddjwkdj=
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
hdsjhdsnxcs....
xxxx
hsjhshcjscjsakhcaouhcjkabcjkdbvudiscjdbdsbbduvdusde=
-----END CERTIFICATE-----
not sure what is missing here. can you please guide us to fix this issue?
Thank you Simon for your response,
yes, my apps are checking "issued By" in the certificate viewer and it is same for all apps.
my requirements is need to add my organization info in "Issued by" and need to remove the zap community info in "Issued to" checks.
below is an example of certificate viewer as per my requirements.
certificate viewer example:
Issued To
Common Name (CN) hostname.test.local
Organization (O) <Not Part Of Certificate>
Organizational Unit (OU) <Not Part Of Certificate>
Issued By
Common Name (CN) organization info certificate CA G4
Organization (O) ogranization name
Organizational Unit (OU) organization unit
https://groups.google.com/g/zaproxy-develop/c/wgsTib6yHBI/m/ozRQqLgvAAAJ