Class SelfSignedCert
Inherited Members
Namespace: Pulumi.Tls
Assembly: Pulumi.Tls.dll
Syntax
public class SelfSignedCert : CustomResource
Constructors
View SourceSelfSignedCert(String, SelfSignedCertArgs, CustomResourceOptions)
Create a SelfSignedCert resource with the given unique name, arguments, and options.
Declaration
public SelfSignedCert(string name, SelfSignedCertArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| SelfSignedCertArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAllowedUses
List of keywords each describing a use that is permitted for the issued certificate. The valid keywords are listed below.
Declaration
public Output<ImmutableArray<string>> AllowedUses { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
CertPem
The certificate data in PEM format.
Declaration
public Output<string> CertPem { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DnsNames
List of DNS names for which a certificate is being requested.
Declaration
public Output<ImmutableArray<string>> DnsNames { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
EarlyRenewalHours
Number of hours before the certificates expiry when a new certificate will be generated
Declaration
public Output<int?> EarlyRenewalHours { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
IpAddresses
List of IP addresses for which a certificate is being requested.
Declaration
public Output<ImmutableArray<string>> IpAddresses { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
IsCaCertificate
Boolean controlling whether the CA flag will be set in the
generated certificate. Defaults to false, meaning that the certificate does not represent
a certificate authority.
Declaration
public Output<bool?> IsCaCertificate { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
KeyAlgorithm
The name of the algorithm for the key provided
in private_key_pem.
Declaration
public Output<string> KeyAlgorithm { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PrivateKeyPem
PEM-encoded private key that the certificate will belong to
Declaration
public Output<string> PrivateKeyPem { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ReadyForRenewal
Declaration
public Output<bool> ReadyForRenewal { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
SetSubjectKeyId
If true, the certificate will include
the subject key identifier. Defaults to false, in which case the subject
key identifier is not set at all.
Declaration
public Output<bool?> SetSubjectKeyId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Subjects
The subject for which a certificate is being requested.
This is a nested configuration block whose structure matches the
corresponding block for tls..CertRequest.
Declaration
public Output<ImmutableArray<SelfSignedCertSubject>> Subjects { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<SelfSignedCertSubject>> |
Uris
List of URIs for which a certificate is being requested.
Declaration
public Output<ImmutableArray<string>> Uris { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
ValidityEndTime
The time until which the certificate is invalid, as an RFC3339 timestamp.
Declaration
public Output<string> ValidityEndTime { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ValidityPeriodHours
The number of hours after initial issuing that the certificate will become invalid.
Declaration
public Output<int> ValidityPeriodHours { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
ValidityStartTime
The time after which the certificate is valid, as an RFC3339 timestamp.
Declaration
public Output<string> ValidityStartTime { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, SelfSignedCertState, CustomResourceOptions)
Get an existing SelfSignedCert resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static SelfSignedCert Get(string name, Input<string> id, SelfSignedCertState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| SelfSignedCertState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| SelfSignedCert |