Ngx + lua Ssl certificate content

Hi,
My nginx_extras packages works good such as reverse proxy with Ssl
certificates.
I want to add LUA codes into nginx.conf file for getting Certificates
contents.
I added this lua codes and I checked certificates which ID start to
handshake with my server.
Have u got any ideas or way?

thanks