Certificate

112 views
Skip to first unread message

Thoni A

unread,
Jan 31, 2025, 4:02:25 PMJan 31
to ZAP User Group

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

image

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?

Simon Bennetts

unread,
Feb 3, 2025, 11:43:30 AMFeb 3
to ZAP User Group
I did reply, and my reply to you is the same.

We recommend using the one ZAP generates.
Its worth noting that ZAP needs a Root CA certificate. A standard CA certificate will not work.

Cheers,

Simon

Thoni A

unread,
Feb 3, 2025, 6:07:27 PMFeb 3
to ZAP User Group
Thank you for your reply,
I understood that we need to use the ZAP generated CA certificate for Https encryption.
I just wanted to check, is there any way that we can use our internal custom certificates for Https encryption for ZAP UI ?
If not, in future versions do you have any plans to add enhancements to use internal custom certificates for ZAP UI?

Simon Bennetts

unread,
Feb 4, 2025, 4:26:32 AMFeb 4
to ZAP User Group
Can you explain what you need in more detail please, including the reasons for your requirements?
You can already import an alternative Root CA certificate into ZAP.

Cheers,

Simon

Thoni A

unread,
Feb 4, 2025, 12:59:50 PMFeb 4
to ZAP User Group

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?

Simon Bennetts

unread,
Feb 5, 2025, 7:13:28 AMFeb 5
to ZAP User Group
OK, so your apps are checking the "Issued by" field in the certificates?
Is this the same value for all apps or do they differ?

We do not currently have a config option for this, but if its always the same info then I think it should not be too hard to add.

Cheers,

Simon

Thoni A

unread,
Feb 5, 2025, 4:47:04 PMFeb 5
to ZAP User Group

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

Simon Bennetts

unread,
Feb 10, 2025, 10:46:07 AMFeb 10
to ZAP User Group
Could you raise a feature request for this?

Many thanks,

Simon

Thoni A

unread,
Feb 10, 2025, 4:49:30 PMFeb 10
to ZAP User Group
sure, here is the feature request
https://github.com/zaproxy/zaproxy/issues/8849

If you don't mind asking, can you please let me know when this feature going to be available to use?
Thank you

Simon Bennetts

unread,
Feb 11, 2025, 7:38:33 AMFeb 11
to ZAP User Group
Many thanks!

When will it be available?

Cheers,

Simon
Message has been deleted

Thoni A

unread,
Feb 12, 2025, 4:31:55 PMFeb 12
to ZAP User Group

I have created a conversation in ZAP Developer group.
here is the Conversation

https://groups.google.com/g/zaproxy-develop/c/wgsTib6yHBI/m/ozRQqLgvAAAJ

 
Reply all
Reply to author
Forward
0 new messages