Hi,
I am using openssl.x509 and openssl.x509.store library.
I am getting the client certificate as below:
– Get Client Certificate from Request
local client_cert = openssl_x509.new(ngx.var.ssl_client_raw_cert)
– Get Subject from Client Certificate sent in Request
local subject = client_cert:getSubject()
I need to get the common name from the subject, how can I get it?