1. Registry
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. OriginCaCertificate
Viewing docs for Cloudflare v6.24.0
published on Thursday, Nov 12, 2026 by Pulumi
cloudflare logo cloudflare logo
Viewing docs for Cloudflare v6.24.0
published on Thursday, Nov 12, 2026 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleOriginCaCertificate = new cloudflare.OriginCaCertificate("example_origin_ca_certificate", {
        csr: `  -----BEGIN CERTIFICATE REQUEST-----
      MIICxzCCAa8CAQAwSDELMAkGA1UEBhMCVVMxFjAUBgNVBAgTDVNhbiBGcmFuY2lz
      Y28xCzAJBgNVBAcTAkNBMRQwEgYDVQQDEwtleGFtcGxlLm5ldDCCASIwDQYJKoZI
      hvcNAQEBBQADggEPADCCAQoCggEBALxejtu4b+jPdFeFi6OUsye8TYJQBm3WfCvL
      Hu5EvijMO/4Z2TImwASbwUF7Ir8OLgH+mGlQZeqyNvGoSOMEaZVXcYfpR1hlVak8
      4GGVr+04IGfOCqaBokaBFIwzclGZbzKmLGwIQioNxGfqFm6RGYGA3be2Je2iseBc
      N8GV1wYmvYE0RR+yWweJCTJ157exyRzu7sVxaEW9F87zBQLyOnwXc64rflXslRqi
      g7F7w5IaQYOl8yvmk/jEPCAha7fkiUfEpj4N12+oPRiMvleJF98chxjD4MH39c5I
      uOslULhrWunfh7GB1jwWNA9y44H0snrf+xvoy2TcHmxvma9Eln8CAwEAAaA6MDgG
      CSqGSIb3DQEJDjErMCkwJwYDVR0RBCAwHoILZXhhbXBsZS5uZXSCD3d3dy5leGFt
      cGxlLm5ldDANBgkqhkiG9w0BAQsFAAOCAQEAcBaX6dOnI8ncARrI9ZSF2AJX+8mx
      pTHY2+Y2C0VvrVDGMtbBRH8R9yMbqWtlxeeNGf//LeMkSKSFa4kbpdx226lfui8/
      auRDBTJGx2R1ccUxmLZXx4my0W5iIMxunu+kez+BDlu7bTT2io0uXMRHue4i6quH
      yc5ibxvbJMjR7dqbcanVE10/34oprzXQsJ/VmSuZNXtjbtSKDlmcpw6To/eeAJ+J
      hXykcUihvHyG4A1m2R6qpANBjnA0pHexfwM/SgfzvpbvUg0T1ubmer8BgTwCKIWs
      dcWYTthM51JIqRBfNqy4QcBnX+GY05yltEEswQI55wdiS3CjTTA67sdbcQ==
      -----END CERTIFICATE REQUEST-----
    `,
        hostnames: [
            "example.com",
            "*.example.com",
            "sub.example.com",
        ],
        requestType: "origin-rsa",
        requestedValidity: 5475,
        zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_origin_ca_certificate = cloudflare.OriginCaCertificate("example_origin_ca_certificate",
        csr="""  -----BEGIN CERTIFICATE REQUEST-----
      MIICxzCCAa8CAQAwSDELMAkGA1UEBhMCVVMxFjAUBgNVBAgTDVNhbiBGcmFuY2lz
      Y28xCzAJBgNVBAcTAkNBMRQwEgYDVQQDEwtleGFtcGxlLm5ldDCCASIwDQYJKoZI
      hvcNAQEBBQADggEPADCCAQoCggEBALxejtu4b+jPdFeFi6OUsye8TYJQBm3WfCvL
      Hu5EvijMO/4Z2TImwASbwUF7Ir8OLgH+mGlQZeqyNvGoSOMEaZVXcYfpR1hlVak8
      4GGVr+04IGfOCqaBokaBFIwzclGZbzKmLGwIQioNxGfqFm6RGYGA3be2Je2iseBc
      N8GV1wYmvYE0RR+yWweJCTJ157exyRzu7sVxaEW9F87zBQLyOnwXc64rflXslRqi
      g7F7w5IaQYOl8yvmk/jEPCAha7fkiUfEpj4N12+oPRiMvleJF98chxjD4MH39c5I
      uOslULhrWunfh7GB1jwWNA9y44H0snrf+xvoy2TcHmxvma9Eln8CAwEAAaA6MDgG
      CSqGSIb3DQEJDjErMCkwJwYDVR0RBCAwHoILZXhhbXBsZS5uZXSCD3d3dy5leGFt
      cGxlLm5ldDANBgkqhkiG9w0BAQsFAAOCAQEAcBaX6dOnI8ncARrI9ZSF2AJX+8mx
      pTHY2+Y2C0VvrVDGMtbBRH8R9yMbqWtlxeeNGf//LeMkSKSFa4kbpdx226lfui8/
      auRDBTJGx2R1ccUxmLZXx4my0W5iIMxunu+kez+BDlu7bTT2io0uXMRHue4i6quH
      yc5ibxvbJMjR7dqbcanVE10/34oprzXQsJ/VmSuZNXtjbtSKDlmcpw6To/eeAJ+J
      hXykcUihvHyG4A1m2R6qpANBjnA0pHexfwM/SgfzvpbvUg0T1ubmer8BgTwCKIWs
      dcWYTthM51JIqRBfNqy4QcBnX+GY05yltEEswQI55wdiS3CjTTA67sdbcQ==
      -----END CERTIFICATE REQUEST-----
    """,
        hostnames=[
            "example.com",
            "*.example.com",
            "sub.example.com",
        ],
        request_type="origin-rsa",
        requested_validity=float(5475),
        zone_id="023e105f4ecef8ad9ca31a8372d0c353")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.NewOriginCaCertificate(ctx, "example_origin_ca_certificate", &cloudflare.OriginCaCertificateArgs{
    			Csr: pulumi.String(`  -----BEGIN CERTIFICATE REQUEST-----
      MIICxzCCAa8CAQAwSDELMAkGA1UEBhMCVVMxFjAUBgNVBAgTDVNhbiBGcmFuY2lz
      Y28xCzAJBgNVBAcTAkNBMRQwEgYDVQQDEwtleGFtcGxlLm5ldDCCASIwDQYJKoZI
      hvcNAQEBBQADggEPADCCAQoCggEBALxejtu4b+jPdFeFi6OUsye8TYJQBm3WfCvL
      Hu5EvijMO/4Z2TImwASbwUF7Ir8OLgH+mGlQZeqyNvGoSOMEaZVXcYfpR1hlVak8
      4GGVr+04IGfOCqaBokaBFIwzclGZbzKmLGwIQioNxGfqFm6RGYGA3be2Je2iseBc
      N8GV1wYmvYE0RR+yWweJCTJ157exyRzu7sVxaEW9F87zBQLyOnwXc64rflXslRqi
      g7F7w5IaQYOl8yvmk/jEPCAha7fkiUfEpj4N12+oPRiMvleJF98chxjD4MH39c5I
      uOslULhrWunfh7GB1jwWNA9y44H0snrf+xvoy2TcHmxvma9Eln8CAwEAAaA6MDgG
      CSqGSIb3DQEJDjErMCkwJwYDVR0RBCAwHoILZXhhbXBsZS5uZXSCD3d3dy5leGFt
      cGxlLm5ldDANBgkqhkiG9w0BAQsFAAOCAQEAcBaX6dOnI8ncARrI9ZSF2AJX+8mx
      pTHY2+Y2C0VvrVDGMtbBRH8R9yMbqWtlxeeNGf//LeMkSKSFa4kbpdx226lfui8/
      auRDBTJGx2R1ccUxmLZXx4my0W5iIMxunu+kez+BDlu7bTT2io0uXMRHue4i6quH
      yc5ibxvbJMjR7dqbcanVE10/34oprzXQsJ/VmSuZNXtjbtSKDlmcpw6To/eeAJ+J
      hXykcUihvHyG4A1m2R6qpANBjnA0pHexfwM/SgfzvpbvUg0T1ubmer8BgTwCKIWs
      dcWYTthM51JIqRBfNqy4QcBnX+GY05yltEEswQI55wdiS3CjTTA67sdbcQ==
      -----END CERTIFICATE REQUEST-----
    `),
    			Hostnames: pulumi.StringArray{
    				pulumi.String("example.com"),
    				pulumi.String("*.example.com"),
    				pulumi.String("sub.example.com"),
    			},
    			RequestType:       pulumi.String("origin-rsa"),
    			RequestedValidity: pulumi.Float64(5475),
    			ZoneId:            pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleOriginCaCertificate = new Cloudflare.OriginCaCertificate("example_origin_ca_certificate", new()
        {
            Csr = @"  -----BEGIN CERTIFICATE REQUEST-----
      MIICxzCCAa8CAQAwSDELMAkGA1UEBhMCVVMxFjAUBgNVBAgTDVNhbiBGcmFuY2lz
      Y28xCzAJBgNVBAcTAkNBMRQwEgYDVQQDEwtleGFtcGxlLm5ldDCCASIwDQYJKoZI
      hvcNAQEBBQADggEPADCCAQoCggEBALxejtu4b+jPdFeFi6OUsye8TYJQBm3WfCvL
      Hu5EvijMO/4Z2TImwASbwUF7Ir8OLgH+mGlQZeqyNvGoSOMEaZVXcYfpR1hlVak8
      4GGVr+04IGfOCqaBokaBFIwzclGZbzKmLGwIQioNxGfqFm6RGYGA3be2Je2iseBc
      N8GV1wYmvYE0RR+yWweJCTJ157exyRzu7sVxaEW9F87zBQLyOnwXc64rflXslRqi
      g7F7w5IaQYOl8yvmk/jEPCAha7fkiUfEpj4N12+oPRiMvleJF98chxjD4MH39c5I
      uOslULhrWunfh7GB1jwWNA9y44H0snrf+xvoy2TcHmxvma9Eln8CAwEAAaA6MDgG
      CSqGSIb3DQEJDjErMCkwJwYDVR0RBCAwHoILZXhhbXBsZS5uZXSCD3d3dy5leGFt
      cGxlLm5ldDANBgkqhkiG9w0BAQsFAAOCAQEAcBaX6dOnI8ncARrI9ZSF2AJX+8mx
      pTHY2+Y2C0VvrVDGMtbBRH8R9yMbqWtlxeeNGf//LeMkSKSFa4kbpdx226lfui8/
      auRDBTJGx2R1ccUxmLZXx4my0W5iIMxunu+kez+BDlu7bTT2io0uXMRHue4i6quH
      yc5ibxvbJMjR7dqbcanVE10/34oprzXQsJ/VmSuZNXtjbtSKDlmcpw6To/eeAJ+J
      hXykcUihvHyG4A1m2R6qpANBjnA0pHexfwM/SgfzvpbvUg0T1ubmer8BgTwCKIWs
      dcWYTthM51JIqRBfNqy4QcBnX+GY05yltEEswQI55wdiS3CjTTA67sdbcQ==
      -----END CERTIFICATE REQUEST-----
    ",
            Hostnames = new[]
            {
                "example.com",
                "*.example.com",
                "sub.example.com",
            },
            RequestType = "origin-rsa",
            RequestedValidity = 5475.0,
            ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.OriginCaCertificate;
    import com.pulumi.cloudflare.OriginCaCertificateArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var exampleOriginCaCertificate = new OriginCaCertificate("exampleOriginCaCertificate", OriginCaCertificateArgs.builder()
                .csr("""
      -----BEGIN CERTIFICATE REQUEST-----
      MIICxzCCAa8CAQAwSDELMAkGA1UEBhMCVVMxFjAUBgNVBAgTDVNhbiBGcmFuY2lz
      Y28xCzAJBgNVBAcTAkNBMRQwEgYDVQQDEwtleGFtcGxlLm5ldDCCASIwDQYJKoZI
      hvcNAQEBBQADggEPADCCAQoCggEBALxejtu4b+jPdFeFi6OUsye8TYJQBm3WfCvL
      Hu5EvijMO/4Z2TImwASbwUF7Ir8OLgH+mGlQZeqyNvGoSOMEaZVXcYfpR1hlVak8
      4GGVr+04IGfOCqaBokaBFIwzclGZbzKmLGwIQioNxGfqFm6RGYGA3be2Je2iseBc
      N8GV1wYmvYE0RR+yWweJCTJ157exyRzu7sVxaEW9F87zBQLyOnwXc64rflXslRqi
      g7F7w5IaQYOl8yvmk/jEPCAha7fkiUfEpj4N12+oPRiMvleJF98chxjD4MH39c5I
      uOslULhrWunfh7GB1jwWNA9y44H0snrf+xvoy2TcHmxvma9Eln8CAwEAAaA6MDgG
      CSqGSIb3DQEJDjErMCkwJwYDVR0RBCAwHoILZXhhbXBsZS5uZXSCD3d3dy5leGFt
      cGxlLm5ldDANBgkqhkiG9w0BAQsFAAOCAQEAcBaX6dOnI8ncARrI9ZSF2AJX+8mx
      pTHY2+Y2C0VvrVDGMtbBRH8R9yMbqWtlxeeNGf//LeMkSKSFa4kbpdx226lfui8/
      auRDBTJGx2R1ccUxmLZXx4my0W5iIMxunu+kez+BDlu7bTT2io0uXMRHue4i6quH
      yc5ibxvbJMjR7dqbcanVE10/34oprzXQsJ/VmSuZNXtjbtSKDlmcpw6To/eeAJ+J
      hXykcUihvHyG4A1m2R6qpANBjnA0pHexfwM/SgfzvpbvUg0T1ubmer8BgTwCKIWs
      dcWYTthM51JIqRBfNqy4QcBnX+GY05yltEEswQI55wdiS3CjTTA67sdbcQ==
      -----END CERTIFICATE REQUEST-----
                """)
                .hostnames(            
                    "example.com",
                    "*.example.com",
                    "sub.example.com")
                .requestType("origin-rsa")
                .requestedValidity(5475.0)
                .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    resources:
      exampleOriginCaCertificate:
        type: cloudflare:OriginCaCertificate
        name: example_origin_ca_certificate
        properties:
          csr: |2
              -----BEGIN CERTIFICATE REQUEST-----
              MIICxzCCAa8CAQAwSDELMAkGA1UEBhMCVVMxFjAUBgNVBAgTDVNhbiBGcmFuY2lz
              Y28xCzAJBgNVBAcTAkNBMRQwEgYDVQQDEwtleGFtcGxlLm5ldDCCASIwDQYJKoZI
              hvcNAQEBBQADggEPADCCAQoCggEBALxejtu4b+jPdFeFi6OUsye8TYJQBm3WfCvL
              Hu5EvijMO/4Z2TImwASbwUF7Ir8OLgH+mGlQZeqyNvGoSOMEaZVXcYfpR1hlVak8
              4GGVr+04IGfOCqaBokaBFIwzclGZbzKmLGwIQioNxGfqFm6RGYGA3be2Je2iseBc
              N8GV1wYmvYE0RR+yWweJCTJ157exyRzu7sVxaEW9F87zBQLyOnwXc64rflXslRqi
              g7F7w5IaQYOl8yvmk/jEPCAha7fkiUfEpj4N12+oPRiMvleJF98chxjD4MH39c5I
              uOslULhrWunfh7GB1jwWNA9y44H0snrf+xvoy2TcHmxvma9Eln8CAwEAAaA6MDgG
              CSqGSIb3DQEJDjErMCkwJwYDVR0RBCAwHoILZXhhbXBsZS5uZXSCD3d3dy5leGFt
              cGxlLm5ldDANBgkqhkiG9w0BAQsFAAOCAQEAcBaX6dOnI8ncARrI9ZSF2AJX+8mx
              pTHY2+Y2C0VvrVDGMtbBRH8R9yMbqWtlxeeNGf//LeMkSKSFa4kbpdx226lfui8/
              auRDBTJGx2R1ccUxmLZXx4my0W5iIMxunu+kez+BDlu7bTT2io0uXMRHue4i6quH
              yc5ibxvbJMjR7dqbcanVE10/34oprzXQsJ/VmSuZNXtjbtSKDlmcpw6To/eeAJ+J
              hXykcUihvHyG4A1m2R6qpANBjnA0pHexfwM/SgfzvpbvUg0T1ubmer8BgTwCKIWs
              dcWYTthM51JIqRBfNqy4QcBnX+GY05yltEEswQI55wdiS3CjTTA67sdbcQ==
              -----END CERTIFICATE REQUEST-----
          hostnames:
            - example.com
            - '*.example.com'
            - sub.example.com
          requestType: origin-rsa
          requestedValidity: 5475
          zoneId: 023e105f4ecef8ad9ca31a8372d0c353
    
    terraform {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    resource "cloudflare_origin_ca_certificate" "example_origin_ca_certificate" {
      lifecycle {
        create_before_destroy = true
      }
      csr                = <<EOT
      -----BEGIN CERTIFICATE REQUEST-----
      MIICxzCCAa8CAQAwSDELMAkGA1UEBhMCVVMxFjAUBgNVBAgTDVNhbiBGcmFuY2lz
      Y28xCzAJBgNVBAcTAkNBMRQwEgYDVQQDEwtleGFtcGxlLm5ldDCCASIwDQYJKoZI
      hvcNAQEBBQADggEPADCCAQoCggEBALxejtu4b+jPdFeFi6OUsye8TYJQBm3WfCvL
      Hu5EvijMO/4Z2TImwASbwUF7Ir8OLgH+mGlQZeqyNvGoSOMEaZVXcYfpR1hlVak8
      4GGVr+04IGfOCqaBokaBFIwzclGZbzKmLGwIQioNxGfqFm6RGYGA3be2Je2iseBc
      N8GV1wYmvYE0RR+yWweJCTJ157exyRzu7sVxaEW9F87zBQLyOnwXc64rflXslRqi
      g7F7w5IaQYOl8yvmk/jEPCAha7fkiUfEpj4N12+oPRiMvleJF98chxjD4MH39c5I
      uOslULhrWunfh7GB1jwWNA9y44H0snrf+xvoy2TcHmxvma9Eln8CAwEAAaA6MDgG
      CSqGSIb3DQEJDjErMCkwJwYDVR0RBCAwHoILZXhhbXBsZS5uZXSCD3d3dy5leGFt
      cGxlLm5ldDANBgkqhkiG9w0BAQsFAAOCAQEAcBaX6dOnI8ncARrI9ZSF2AJX+8mx
      pTHY2+Y2C0VvrVDGMtbBRH8R9yMbqWtlxeeNGf//LeMkSKSFa4kbpdx226lfui8/
      auRDBTJGx2R1ccUxmLZXx4my0W5iIMxunu+kez+BDlu7bTT2io0uXMRHue4i6quH
      yc5ibxvbJMjR7dqbcanVE10/34oprzXQsJ/VmSuZNXtjbtSKDlmcpw6To/eeAJ+J
      hXykcUihvHyG4A1m2R6qpANBjnA0pHexfwM/SgfzvpbvUg0T1ubmer8BgTwCKIWs
      dcWYTthM51JIqRBfNqy4QcBnX+GY05yltEEswQI55wdiS3CjTTA67sdbcQ==
      -----END CERTIFICATE REQUEST-----
    EOT
    
      hostnames          = ["example.com", "*.example.com", "sub.example.com"]
      request_type       = "origin-rsa"
      requested_validity = 5475
      zone_id            = "023e105f4ecef8ad9ca31a8372d0c353"
    }
    

    Create OriginCaCertificate Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new OriginCaCertificate(name: string, args: OriginCaCertificateArgs, opts?: CustomResourceOptions);
    @overload
    def OriginCaCertificate(resource_name: str,
                            args: OriginCaCertificateArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def OriginCaCertificate(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            csr: Optional[str] = None,
                            hostnames: Optional[Sequence[str]] = None,
                            request_type: Optional[str] = None,
                            requested_validity: Optional[float] = None,
                            zone_id: Optional[str] = None)
    func NewOriginCaCertificate(ctx *Context, name string, args OriginCaCertificateArgs, opts ...ResourceOption) (*OriginCaCertificate, error)
    public OriginCaCertificate(string name, OriginCaCertificateArgs args, CustomResourceOptions? opts = null)
    public OriginCaCertificate(String name, OriginCaCertificateArgs args)
    public OriginCaCertificate(String name, OriginCaCertificateArgs args, CustomResourceOptions options)
    
    type: cloudflare:OriginCaCertificate
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "cloudflare_origin_ca_certificate" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args OriginCaCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args OriginCaCertificateArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args OriginCaCertificateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OriginCaCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OriginCaCertificateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var originCaCertificateResource = new Cloudflare.OriginCaCertificate("originCaCertificateResource", new()
    {
        Csr = "string",
        Hostnames = new[]
        {
            "string",
        },
        RequestType = "string",
        RequestedValidity = 0.0,
        ZoneId = "string",
    });
    
    example, err := cloudflare.NewOriginCaCertificate(ctx, "originCaCertificateResource", &cloudflare.OriginCaCertificateArgs{
    	Csr: pulumi.String("string"),
    	Hostnames: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	RequestType:       pulumi.String("string"),
    	RequestedValidity: pulumi.Float64(0),
    	ZoneId:            pulumi.String("string"),
    })
    
    resource "cloudflare_origin_ca_certificate" "originCaCertificateResource" {
      lifecycle {
        create_before_destroy = true
      }
      csr                = "string"
      hostnames          = ["string"]
      request_type       = "string"
      requested_validity = 0
      zone_id            = "string"
    }
    
    var originCaCertificateResource = new OriginCaCertificate("originCaCertificateResource", OriginCaCertificateArgs.builder()
        .csr("string")
        .hostnames("string")
        .requestType("string")
        .requestedValidity(0.0)
        .zoneId("string")
        .build());
    
    origin_ca_certificate_resource = cloudflare.OriginCaCertificate("originCaCertificateResource",
        csr="string",
        hostnames=["string"],
        request_type="string",
        requested_validity=float(0),
        zone_id="string")
    
    const originCaCertificateResource = new cloudflare.OriginCaCertificate("originCaCertificateResource", {
        csr: "string",
        hostnames: ["string"],
        requestType: "string",
        requestedValidity: 0,
        zoneId: "string",
    });
    
    type: cloudflare:OriginCaCertificate
    properties:
        csr: string
        hostnames:
            - string
        requestType: string
        requestedValidity: 0
        zoneId: string
    

    OriginCaCertificate Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The OriginCaCertificate resource accepts the following input properties:

    Csr string
    The Certificate Signing Request (CSR). Must be newline-encoded.
    Hostnames List<string>
    Array of hostnames or wildcard names bound to the certificate. Hostnames must be fully qualified domain names (FQDNs) belonging to zones on your account (e.g., example.com or sub.example.com). Wildcards are supported only as a *. prefix for a single level (e.g., *.example.com). Double wildcards (*.*.example.com) and interior wildcards (foo.*.example.com) are not allowed. The wildcard suffix must be a multi-label domain (*.example.com is valid, but *.com is not). Unicode/IDN hostnames are accepted and automatically converted to punycode.
    RequestType string
    Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
    RequestedValidity double
    The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
    ZoneId string
    Identifier of the zone whose keyless servers the certificate is for. Required when requestType is keyless-certificate; ignored otherwise.
    Csr string
    The Certificate Signing Request (CSR). Must be newline-encoded.
    Hostnames []string
    Array of hostnames or wildcard names bound to the certificate. Hostnames must be fully qualified domain names (FQDNs) belonging to zones on your account (e.g., example.com or sub.example.com). Wildcards are supported only as a *. prefix for a single level (e.g., *.example.com). Double wildcards (*.*.example.com) and interior wildcards (foo.*.example.com) are not allowed. The wildcard suffix must be a multi-label domain (*.example.com is valid, but *.com is not). Unicode/IDN hostnames are accepted and automatically converted to punycode.
    RequestType string
    Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
    RequestedValidity float64
    The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
    ZoneId string
    Identifier of the zone whose keyless servers the certificate is for. Required when requestType is keyless-certificate; ignored otherwise.
    csr string
    The Certificate Signing Request (CSR). Must be newline-encoded.
    hostnames list(string)
    Array of hostnames or wildcard names bound to the certificate. Hostnames must be fully qualified domain names (FQDNs) belonging to zones on your account (e.g., example.com or sub.example.com). Wildcards are supported only as a *. prefix for a single level (e.g., *.example.com). Double wildcards (*.*.example.com) and interior wildcards (foo.*.example.com) are not allowed. The wildcard suffix must be a multi-label domain (*.example.com is valid, but *.com is not). Unicode/IDN hostnames are accepted and automatically converted to punycode.
    request_type string
    Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
    requested_validity number
    The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
    zone_id string
    Identifier of the zone whose keyless servers the certificate is for. Required when requestType is keyless-certificate; ignored otherwise.
    csr String
    The Certificate Signing Request (CSR). Must be newline-encoded.
    hostnames List<String>
    Array of hostnames or wildcard names bound to the certificate. Hostnames must be fully qualified domain names (FQDNs) belonging to zones on your account (e.g., example.com or sub.example.com). Wildcards are supported only as a *. prefix for a single level (e.g., *.example.com). Double wildcards (*.*.example.com) and interior wildcards (foo.*.example.com) are not allowed. The wildcard suffix must be a multi-label domain (*.example.com is valid, but *.com is not). Unicode/IDN hostnames are accepted and automatically converted to punycode.
    requestType String
    Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
    requestedValidity Double
    The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
    zoneId String
    Identifier of the zone whose keyless servers the certificate is for. Required when requestType is keyless-certificate; ignored otherwise.
    csr string
    The Certificate Signing Request (CSR). Must be newline-encoded.
    hostnames string[]
    Array of hostnames or wildcard names bound to the certificate. Hostnames must be fully qualified domain names (FQDNs) belonging to zones on your account (e.g., example.com or sub.example.com). Wildcards are supported only as a *. prefix for a single level (e.g., *.example.com). Double wildcards (*.*.example.com) and interior wildcards (foo.*.example.com) are not allowed. The wildcard suffix must be a multi-label domain (*.example.com is valid, but *.com is not). Unicode/IDN hostnames are accepted and automatically converted to punycode.
    requestType string
    Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
    requestedValidity number
    The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
    zoneId string
    Identifier of the zone whose keyless servers the certificate is for. Required when requestType is keyless-certificate; ignored otherwise.
    csr str
    The Certificate Signing Request (CSR). Must be newline-encoded.
    hostnames Sequence[str]
    Array of hostnames or wildcard names bound to the certificate. Hostnames must be fully qualified domain names (FQDNs) belonging to zones on your account (e.g., example.com or sub.example.com). Wildcards are supported only as a *. prefix for a single level (e.g., *.example.com). Double wildcards (*.*.example.com) and interior wildcards (foo.*.example.com) are not allowed. The wildcard suffix must be a multi-label domain (*.example.com is valid, but *.com is not). Unicode/IDN hostnames are accepted and automatically converted to punycode.
    request_type str
    Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
    requested_validity float
    The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
    zone_id str
    Identifier of the zone whose keyless servers the certificate is for. Required when requestType is keyless-certificate; ignored otherwise.
    csr String
    The Certificate Signing Request (CSR). Must be newline-encoded.
    hostnames List<String>
    Array of hostnames or wildcard names bound to the certificate. Hostnames must be fully qualified domain names (FQDNs) belonging to zones on your account (e.g., example.com or sub.example.com). Wildcards are supported only as a *. prefix for a single level (e.g., *.example.com). Double wildcards (*.*.example.com) and interior wildcards (foo.*.example.com) are not allowed. The wildcard suffix must be a multi-label domain (*.example.com is valid, but *.com is not). Unicode/IDN hostnames are accepted and automatically converted to punycode.
    requestType String
    Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
    requestedValidity Number
    The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
    zoneId String
    Identifier of the zone whose keyless servers the certificate is for. Required when requestType is keyless-certificate; ignored otherwise.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the OriginCaCertificate resource produces the following output properties:

    Certificate string
    The Origin CA certificate. Will be newline-encoded.
    ExpiresOn string
    When the certificate will expire.
    Id string
    The provider-assigned unique ID for this managed resource.
    RevokedAt string
    When the certificate was revoked.
    Certificate string
    The Origin CA certificate. Will be newline-encoded.
    ExpiresOn string
    When the certificate will expire.
    Id string
    The provider-assigned unique ID for this managed resource.
    RevokedAt string
    When the certificate was revoked.
    certificate string
    The Origin CA certificate. Will be newline-encoded.
    expires_on string
    When the certificate will expire.
    id string
    The provider-assigned unique ID for this managed resource.
    revoked_at string
    When the certificate was revoked.
    certificate String
    The Origin CA certificate. Will be newline-encoded.
    expiresOn String
    When the certificate will expire.
    id String
    The provider-assigned unique ID for this managed resource.
    revokedAt String
    When the certificate was revoked.
    certificate string
    The Origin CA certificate. Will be newline-encoded.
    expiresOn string
    When the certificate will expire.
    id string
    The provider-assigned unique ID for this managed resource.
    revokedAt string
    When the certificate was revoked.
    certificate str
    The Origin CA certificate. Will be newline-encoded.
    expires_on str
    When the certificate will expire.
    id str
    The provider-assigned unique ID for this managed resource.
    revoked_at str
    When the certificate was revoked.
    certificate String
    The Origin CA certificate. Will be newline-encoded.
    expiresOn String
    When the certificate will expire.
    id String
    The provider-assigned unique ID for this managed resource.
    revokedAt String
    When the certificate was revoked.

    Look up Existing OriginCaCertificate Resource

    Get an existing OriginCaCertificate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: OriginCaCertificateState, opts?: CustomResourceOptions): OriginCaCertificate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            certificate: Optional[str] = None,
            csr: Optional[str] = None,
            expires_on: Optional[str] = None,
            hostnames: Optional[Sequence[str]] = None,
            request_type: Optional[str] = None,
            requested_validity: Optional[float] = None,
            revoked_at: Optional[str] = None,
            zone_id: Optional[str] = None) -> OriginCaCertificate
    func GetOriginCaCertificate(ctx *Context, name string, id IDInput, state *OriginCaCertificateState, opts ...ResourceOption) (*OriginCaCertificate, error)
    public static OriginCaCertificate Get(string name, Input<string> id, OriginCaCertificateState? state, CustomResourceOptions? opts = null)
    public static OriginCaCertificate get(String name, Output<String> id, OriginCaCertificateState state, CustomResourceOptions options)
    resources:  existingOriginCaCertificate:    type: cloudflare:OriginCaCertificate    get:      id: ${id}
    import {
      to = cloudflare_origin_ca_certificate.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    state OriginCaCertificateState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state OriginCaCertificateState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    state OriginCaCertificateState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    state OriginCaCertificateState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    options CustomResourceOptions
    Bag of options to control resource's behavior.
    The following state arguments are supported:
    Certificate string
    The Origin CA certificate. Will be newline-encoded.
    Csr string
    The Certificate Signing Request (CSR). Must be newline-encoded.
    ExpiresOn string
    When the certificate will expire.
    Hostnames List<string>
    Array of hostnames or wildcard names bound to the certificate. Hostnames must be fully qualified domain names (FQDNs) belonging to zones on your account (e.g., example.com or sub.example.com). Wildcards are supported only as a *. prefix for a single level (e.g., *.example.com). Double wildcards (*.*.example.com) and interior wildcards (foo.*.example.com) are not allowed. The wildcard suffix must be a multi-label domain (*.example.com is valid, but *.com is not). Unicode/IDN hostnames are accepted and automatically converted to punycode.
    RequestType string
    Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
    RequestedValidity double
    The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
    RevokedAt string
    When the certificate was revoked.
    ZoneId string
    Identifier of the zone whose keyless servers the certificate is for. Required when requestType is keyless-certificate; ignored otherwise.
    Certificate string
    The Origin CA certificate. Will be newline-encoded.
    Csr string
    The Certificate Signing Request (CSR). Must be newline-encoded.
    ExpiresOn string
    When the certificate will expire.
    Hostnames []string
    Array of hostnames or wildcard names bound to the certificate. Hostnames must be fully qualified domain names (FQDNs) belonging to zones on your account (e.g., example.com or sub.example.com). Wildcards are supported only as a *. prefix for a single level (e.g., *.example.com). Double wildcards (*.*.example.com) and interior wildcards (foo.*.example.com) are not allowed. The wildcard suffix must be a multi-label domain (*.example.com is valid, but *.com is not). Unicode/IDN hostnames are accepted and automatically converted to punycode.
    RequestType string
    Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
    RequestedValidity float64
    The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
    RevokedAt string
    When the certificate was revoked.
    ZoneId string
    Identifier of the zone whose keyless servers the certificate is for. Required when requestType is keyless-certificate; ignored otherwise.
    certificate string
    The Origin CA certificate. Will be newline-encoded.
    csr string
    The Certificate Signing Request (CSR). Must be newline-encoded.
    expires_on string
    When the certificate will expire.
    hostnames list(string)
    Array of hostnames or wildcard names bound to the certificate. Hostnames must be fully qualified domain names (FQDNs) belonging to zones on your account (e.g., example.com or sub.example.com). Wildcards are supported only as a *. prefix for a single level (e.g., *.example.com). Double wildcards (*.*.example.com) and interior wildcards (foo.*.example.com) are not allowed. The wildcard suffix must be a multi-label domain (*.example.com is valid, but *.com is not). Unicode/IDN hostnames are accepted and automatically converted to punycode.
    request_type string
    Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
    requested_validity number
    The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
    revoked_at string
    When the certificate was revoked.
    zone_id string
    Identifier of the zone whose keyless servers the certificate is for. Required when requestType is keyless-certificate; ignored otherwise.
    certificate String
    The Origin CA certificate. Will be newline-encoded.
    csr String
    The Certificate Signing Request (CSR). Must be newline-encoded.
    expiresOn String
    When the certificate will expire.
    hostnames List<String>
    Array of hostnames or wildcard names bound to the certificate. Hostnames must be fully qualified domain names (FQDNs) belonging to zones on your account (e.g., example.com or sub.example.com). Wildcards are supported only as a *. prefix for a single level (e.g., *.example.com). Double wildcards (*.*.example.com) and interior wildcards (foo.*.example.com) are not allowed. The wildcard suffix must be a multi-label domain (*.example.com is valid, but *.com is not). Unicode/IDN hostnames are accepted and automatically converted to punycode.
    requestType String
    Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
    requestedValidity Double
    The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
    revokedAt String
    When the certificate was revoked.
    zoneId String
    Identifier of the zone whose keyless servers the certificate is for. Required when requestType is keyless-certificate; ignored otherwise.
    certificate string
    The Origin CA certificate. Will be newline-encoded.
    csr string
    The Certificate Signing Request (CSR). Must be newline-encoded.
    expiresOn string
    When the certificate will expire.
    hostnames string[]
    Array of hostnames or wildcard names bound to the certificate. Hostnames must be fully qualified domain names (FQDNs) belonging to zones on your account (e.g., example.com or sub.example.com). Wildcards are supported only as a *. prefix for a single level (e.g., *.example.com). Double wildcards (*.*.example.com) and interior wildcards (foo.*.example.com) are not allowed. The wildcard suffix must be a multi-label domain (*.example.com is valid, but *.com is not). Unicode/IDN hostnames are accepted and automatically converted to punycode.
    requestType string
    Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
    requestedValidity number
    The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
    revokedAt string
    When the certificate was revoked.
    zoneId string
    Identifier of the zone whose keyless servers the certificate is for. Required when requestType is keyless-certificate; ignored otherwise.
    certificate str
    The Origin CA certificate. Will be newline-encoded.
    csr str
    The Certificate Signing Request (CSR). Must be newline-encoded.
    expires_on str
    When the certificate will expire.
    hostnames Sequence[str]
    Array of hostnames or wildcard names bound to the certificate. Hostnames must be fully qualified domain names (FQDNs) belonging to zones on your account (e.g., example.com or sub.example.com). Wildcards are supported only as a *. prefix for a single level (e.g., *.example.com). Double wildcards (*.*.example.com) and interior wildcards (foo.*.example.com) are not allowed. The wildcard suffix must be a multi-label domain (*.example.com is valid, but *.com is not). Unicode/IDN hostnames are accepted and automatically converted to punycode.
    request_type str
    Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
    requested_validity float
    The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
    revoked_at str
    When the certificate was revoked.
    zone_id str
    Identifier of the zone whose keyless servers the certificate is for. Required when requestType is keyless-certificate; ignored otherwise.
    certificate String
    The Origin CA certificate. Will be newline-encoded.
    csr String
    The Certificate Signing Request (CSR). Must be newline-encoded.
    expiresOn String
    When the certificate will expire.
    hostnames List<String>
    Array of hostnames or wildcard names bound to the certificate. Hostnames must be fully qualified domain names (FQDNs) belonging to zones on your account (e.g., example.com or sub.example.com). Wildcards are supported only as a *. prefix for a single level (e.g., *.example.com). Double wildcards (*.*.example.com) and interior wildcards (foo.*.example.com) are not allowed. The wildcard suffix must be a multi-label domain (*.example.com is valid, but *.com is not). Unicode/IDN hostnames are accepted and automatically converted to punycode.
    requestType String
    Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
    requestedValidity Number
    The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
    revokedAt String
    When the certificate was revoked.
    zoneId String
    Identifier of the zone whose keyless servers the certificate is for. Required when requestType is keyless-certificate; ignored otherwise.

    Import

    $ pulumi import cloudflare:index/originCaCertificate:OriginCaCertificate example '<certificate_id>'
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo cloudflare logo
    Viewing docs for Cloudflare v6.24.0
    published on Thursday, Nov 12, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial