Skip to content

GetCertificateAuthorityCsr

Source: src/AWS/ACMPCA/GetCertificateAuthorityCsr.ts

Runtime binding for acm-pca:GetCertificateAuthorityCsr.

Bind a CertificateAuthority inside a function runtime to retrieve the CSR the CA generated at creation. The CSR is the input to the CA activation flow: sign it (self-sign a root via IssueCertificate, or have an external parent CA sign it), then install the result with ImportCertificateAuthorityCertificate. Provide ACMPCA.GetCertificateAuthorityCsrHttp on the Function effect to implement the binding.

// init
const getCsr = yield* ACMPCA.GetCertificateAuthorityCsr(ca);
// runtime
const { Csr } = yield* getCsr();