Come join Pulumi for the industry's first Cloud Engineering Summit! October 7–8. Save Your Spot

TLS

The TLS provider for Pulumi can be used to help to create TLS keys and certitifcate for use with Pulumi resources.

See the full API documentation for complete details of the available TLS provider APIs.

Example

const tls = require("@pulumi/tls")

const key = new tls.PrivateKey("my-private-key", {
    algorithm: "ECDSA",
    ecdsaCurve: "P384",
});
import * as tls from "@pulumi/tls";

const key = new tls.PrivateKey("my-private-key", {
    algorithm: "ECDSA",
    ecdsaCurve: "P384",
});
import pulumi_tls as tls

key = tls.PrivateKey("my-private-key",
  algorithm="ECDSA",
  ecdsa_curve="P384"
)
import (
  "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
  tls "github.com/pulumi/pulumi-tls/sdk/v2/go/tls"
)

key, _ := tls.NewPrivateKey(ctx, "my-private-key", &tls.PrivateKeyArgs{
  Algorithm:  pulumi.String("ECDSA"),
  EcdsaCurve: pulumi.String("P384"),
})
using System.Collections.Generic;
using System.Threading.Tasks;
using Pulumi;
using Pulumi.Tls;

class Program
{
    static Task Main() =>
        Deployment.Run(() => {
            var key = new PrivateKey("my-private-key", new PrivateKeyArgs{
                Algorithm = "ECDSA",
                EcdsaCurve = "P384",
            });
        });
}

Libraries

The following packages are available in packager managers:

The TLS provider is open source and available in the pulumi/pulumi-tls repo.