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
import { Construct } from "constructs";
import { Fn, Token, TerraformStack } from "cdktf";
/*
 * Provider bindings are generated by running `cdktf get`.
 * See https://cdk.tf/provider-generation for more details.
 */
import { CertRequest } from "./.gen/providers/tls/cert-request";
class MyConvertedCode extends TerraformStack {
  constructor(scope: Construct, name: string) {
    super(scope, name);
    new CertRequest(this, "example", {
      privateKeyPem: Token.asString(Fn.file("private_key.pem")),
      subject: {
        commonName: "example.com",
        organization: "ACME Examples, Inc",
      },
    });
  }
}

Schema

Required

Optional

Read-Only

Nested Schema for subject

Optional: