tls_cert_request (Resource)

Creates a Certificate Signing Request (CSR) in PEM (RFC 1421) format.

PEM is the typical format used to request a certificate from a Certificate Authority (CA).

This resource is intended to be used in conjunction with a Terraform provider for a particular certificate authority in order to provision a new certificate.

This is a logical resource, so it contributes only to the current Terraform state and does not create any external managed resources.

Example Usage

# DO NOT EDIT. Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
from constructs import Construct
from cdktf import Fn, Token, TerraformStack
#
# Provider bindings are generated by running `cdktf get`.
# See https://cdk.tf/provider-generation for more details.
#
from imports.tls.cert_request import CertRequest
class MyConvertedCode(TerraformStack):
    def __init__(self, scope, name):
        super().__init__(scope, name)
        CertRequest(self, "example",
            private_key_pem=Token.as_string(Fn.file("private_key.pem")),
            subject=CertRequestSubject(
                common_name="example.com",
                organization="ACME Examples, Inc"
            )
        )

Schema

Required

Optional

Read-Only

Nested Schema for subject

Optional: