Table: oci_certificates_authority_bundle - Query OCI Identity Certificate Authority Bundle using SQL
Oracle Cloud Infrastructure (OCI) provides a Certificate Authority Bundle, which is a collection of root and intermediate certificates. These certificates are used by OCI services and resources for secure communication. They are essential for establishing trusted connections between different parts of the OCI ecosystem.
Table Usage Guide
The oci_certificates_authority_bundle
table provides insights into the Certificate Authority Bundles within Oracle Cloud Infrastructure Identity service. As a security engineer, explore details of these bundles through this table, including their contents and associated metadata. Utilize it to uncover information about the trust relationships within OCI, and to verify the authenticity of OCI services and resources.
Examples
Basic info
Determine the status and details of a specific certificate authority in a specific version. This is useful for validating the authenticity of the certificate authority and ensuring it's not revoked, which is crucial for maintaining secure connections.
select certificate_authority_id, certificate_authority_name, serial_number, certificate_pem, version_number, validity, stages, cert_chain_pem, version_name, revocation_statusfrom oci_certificates_authority_bundlewhere certificate_authority_id = 'ocid1.certificateauthority.oc1.ap-mumbai-1.amaaaaaa6igdexaatxksy32ktbtblp6knkei4xr2kl2zc46sdpxujs22momq' and version_number = 1;
select certificate_authority_id, certificate_authority_name, serial_number, certificate_pem, version_number, validity, stages, cert_chain_pem, version_name, revocation_statusfrom oci_certificates_authority_bundlewhere certificate_authority_id = 'ocid1.certificateauthority.oc1.ap-mumbai-1.amaaaaaa6igdexaatxksy32ktbtblp6knkei4xr2kl2zc46sdpxujs22momq' and version_number = 1;
Get all certificate authority bundles
Explore the details of all certificate authority bundles to understand their validity and revocation status. This is useful for ensuring the security and integrity of your digital certificates.
select ccab.certificate_authority_id, ccab.certificate_authority_name, ccab.serial_number, ccab.certificate_pem, ccab.version_number, ccab.validity, ccab.stages, ccab.cert_chain_pem, ccab.version_name, ccab.revocation_statusfrom oci_certificates_authority_bundle ccab inner join oci_certificates_management_certificate_authority cmca on ccab.certificate_authority_id = cmca.id;
select ccab.certificate_authority_id, ccab.certificate_authority_name, ccab.serial_number, ccab.certificate_pem, ccab.version_number, ccab.validity, ccab.stages, ccab.cert_chain_pem, ccab.version_name, ccab.revocation_statusfrom oci_certificates_authority_bundle ccab inner join oci_certificates_management_certificate_authority cmca on ccab.certificate_authority_id = cmca.id;
Schema for oci_certificates_authority_bundle
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
cert_chain_pem | text | The certificate chain (in PEM format) for this CA version. | |
certificate_authority_id | text | = | The OCID of the certificate authority (CA). |
certificate_authority_name | text | The name of the CA. | |
certificate_pem | text | The certificate (in PEM format) for this CA version. | |
revocation_status | jsonb | The revocation status for the certificate authority. | |
serial_number | text | A unique certificate identifier used in certificate revocation tracking, formatted as octets. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
stages | jsonb | A list of rotation states for this CA. | |
tenant_id | text | =, !=, ~~, ~~*, !~~, !~~* | The OCID of the Tenant in which the resource is located. |
time_created | timestamp with time zone | Time that the Certificate Authority Bundle was created. | |
title | text | Title of the resource. | |
validity | jsonb | Validatity details for the certificate authority. | |
version_name | text | = | The name of the CA. |
version_number | bigint | = | The version number of the CA. |
Export
This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- oci
You can pass the configuration to the command with the --config
argument:
steampipe_export_oci --config '<your_config>' oci_certificates_authority_bundle