osquery-1/specs/macwin/certificates.table

24 lines
1.2 KiB
Plaintext
Raw Normal View History

2015-02-25 22:18:43 +00:00
table_name("certificates")
description("Certificate Authorities installed in Keychains/ca-bundles.")
schema([
2015-02-25 22:18:43 +00:00
Column("common_name", TEXT, "Certificate CommonName"),
Column("subject", TEXT, "Certificate distinguished name"),
Column("issuer", TEXT, "Certificate issuer distinguished name"),
2015-02-25 22:18:43 +00:00
Column("ca", INTEGER, "1 if CA: true (certificate is an authority) else 0"),
Column("self_signed", INTEGER, "1 if self-signed, else 0"),
2015-02-05 05:47:02 +00:00
Column("not_valid_before", DATETIME, "Lower bound of valid date"),
Column("not_valid_after", DATETIME, "Certificate expiration data"),
Column("signing_algorithm", TEXT, "Signing algorithm used"),
2015-02-05 05:47:02 +00:00
Column("key_algorithm", TEXT, "Key algorithm used"),
2016-01-06 02:48:34 +00:00
Column("key_strength", TEXT, "Key size used for RSA/DSA, or curve name"),
2015-02-05 05:47:02 +00:00
Column("key_usage", TEXT, "Certificate key usage and extended key usage"),
Column("subject_key_id", TEXT, "SKID an optionally included SHA1"),
Column("authority_key_id", TEXT, "AKID an optionally included SHA1"),
Column("sha1", TEXT, "SHA1 hash of the raw certificate contents"),
2015-02-25 22:18:43 +00:00
Column("path", TEXT, "Path to Keychain or PEM bundle"),
Column("serial", TEXT, "Certificate serial number"),
])
attributes(cacheable=True)
2015-02-25 22:18:43 +00:00
implementation("certificates@genCerts")