Skip to content

GetCertificateAuthorityCertificate

Source: src/AWS/ACMPCA/GetCertificateAuthorityCertificate.ts

Runtime binding for acm-pca:GetCertificateAuthorityCertificate.

Bind a CertificateAuthority inside a function runtime to retrieve the CA’s own certificate and chain (PEM) — e.g. to build a trust store for mutual-TLS verification of certificates the CA issued. Provide ACMPCA.GetCertificateAuthorityCertificateHttp on the Function effect to implement the binding.

// init
const getCaCertificate =
yield* ACMPCA.GetCertificateAuthorityCertificate(ca);
// runtime
const { Certificate, CertificateChain } = yield* getCaCertificate();