I am using a node module \'get-ssl-certificate\' to fetch the certificate details (package link: https://www.npmjs.com/package/get-ssl-certificate)
Code: