dns_mx_recorddns_mx_reportdns_ns_recorddns_ns_reportdns_parent_ns_recorddns_parent_recorddns_parent_reportdns_soa_recorddns_soa_reportsecurity_headers_content_security_policy_checksecurity_headers_missing_headerssecurity_headers_permissions_policy_checksecurity_headers_raw_header_listsecurity_headers_referrer_policy_checksecurity_headers_strict_transport_security_checksecurity_headers_x_content_type_options_checksecurity_headers_x_frame_options_checkssl_additional_certificate_recordssl_certificate_recordssl_certificate_reportssl_server_cbc_cipher_countssl_server_configuration_checksssl_server_insecure_cipher_countssl_server_rc4_cipher_countssl_server_supported_cipher_suitesssl_server_supported_protocols
Query: ssl_certificate_record
Usage
powerpipe query net_insights.query.ssl_certificate_record
Steampipe Tables
SQL
select common_name as "Common Name", (select string_agg(alt_name, ', ') from jsonb_array_elements_text(dns_names) as alt_name) as "Alternative Names", serial_number as "Serial Number", TO_CHAR(not_before, 'Dy, DD Mon YYYY HH24:MI:SS TZ') as "Valid From", TO_CHAR(not_after, 'Dy, DD Mon YYYY HH24:MI:SS TZ') || ' (expires in ' || date_trunc('day', age(not_after, now())) || ')' as "Valid Until", public_key_algorithm || ' ' || public_key_length || ' bits' as "Key", issuer_name as "Issuer", signature_algorithm as "Signature Algorithm", case when revoked then 'Revoked' else 'Not Revoked' end as "Revocation Status", case (select count(*) from net_dns_record where domain = $1 and type = 'CAA') when null then 'No' when 0 then 'No' else 'Yes' end as "DNS CAA"from net_certificatewhere domain = $1;
Params
Args | Name | Default | Description | Variable |
---|---|---|---|---|
$1 | domain_input |
Dashboards
The query is used in the dashboards: