Index: nse_ssl_cert.cc =================================================================== --- nse_ssl_cert.cc (revision 33720) +++ nse_ssl_cert.cc (working copy) @@ -452,6 +452,10 @@ lua_setfield(L, -2, "subject"); } + const char *sig_algo = OBJ_nid2ln(OBJ_obj2nid(cert->sig_alg->algorithm)); + lua_pushstring(L, sig_algo); + lua_setfield(L, -2, "sig_algorithm"); + issuer = X509_get_issuer_name(cert); if (issuer != NULL) { x509_name_to_table(L, issuer); Index: scripts/ssl-cert.nse =================================================================== --- scripts/ssl-cert.nse (revision 33720) +++ scripts/ssl-cert.nse (working copy) @@ -188,6 +188,7 @@ o.subject = name_to_table(cert.subject) o.issuer = name_to_table(cert.issuer) o.pubkey = cert.pubkey + o.sig_algo = cert.sig_algorithm o.validity = {} for k, v in pairs(cert.validity) do if type(v)=="string" then @@ -214,6 +215,7 @@ if nmap.verbosity() > 0 then lines[#lines + 1] = "Public Key type: " .. cert.pubkey.type lines[#lines + 1] = "Public Key bits: " .. cert.pubkey.bits + lines[#lines + 1] = "Signature Algorithm: " .. cert.sig_algorithm end lines[#lines + 1] = "Not valid before: " ..