tls_locally_signed_cert

    0

    0

    lucycodes42

    Terraform snippets

    This code sets up a TLS resource named "myResourceName" with the following properties:

    name: my-description-${myResourceName}

    description: my-description-${myResourceName}

    cert_request_pem: ${file("cert_request.pem")}

    ca_key_algorithm: ECDSA

    ca_private_key_pem: ${file("ca_private_key.pem")}

    ca_cert_pem: ${file("ca_cert.

    Shortcut: tf_tls_locally_signed_cert

    resource "tls_locally_signed_cert" "${myResourceName}" {
       name = "my-${myResourceName}"
       description = "my-description-${myResourceName}"
    
       cert_request_pem = "\${file(\"cert_request.pem\")}"
       ca_key_algorithm = "ECDSA"
       ca_private_key_pem = "\${file(\"ca_private_key.pem\")}"
       ca_cert_pem = "\${file(\"ca_cert.pem\")}"
       validity_period_hours = 12
       allowed_uses = [
           "key_encipherment",
           "digital_signature",
           "server_auth",
       ]
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.