how to validate client certificate #11
-
hi, follow turorial it is easy to setup https server certificate: but, how to setup client certificate validation? tried this, but always got "not trusted":
doc says that:
https://realtimelogic.com/ba/doc/en/lua/auxlua.html#ba_create_certstore I trid to create a root certificate as testroot.pem, and add the CA to a store in app .preload script,
I want to know how to validate client certificate using ba.create.certstore(), |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Here is an example:
|
Beta Was this translation helpful? Give feedback.
-
Are you using the Mako Server?
The certstore attribute makes the code in mako.zip/.openports create a certificate store for the server listen object. When I run your code:
I get
BTW, you do not have to set:
You can use "certstore" with the let's encrypt plugin. |
Beta Was this translation helpful? Give feedback.
Are you using the Mako Server?
If so, there appears to be an undocumented feature for mako.conf. I have this in my mako.conf testup:
The certstore attribute makes the code in mako.zip/.openports create a certificate store for the server listen object. When I run your code:
I get