CertRequestState constructor
Creates a new CertRequestState.
certRequestPem The certificate request data in PEM (RFC 1421) format. NOTE: the underlying libraries that generate this value append a \n at the end of the PEM. In case this disrupts your use case, we recommend using trimspace().
dnsNames List of DNS names for which a certificate is being requested (i.e. certificate subjects).
ipAddresses List of IP addresses for which a certificate is being requested (i.e. certificate subjects).
keyAlgorithm Name of the algorithm used when generating the private key provided in privateKeyPem.
privateKeyPem Private key in PEM (RFC 1421) format, that the certificate will belong to. This can be read from a separate file using the file interpolation function. Exactly one of privateKeyPem or privateKeyPemWo must be set.
privateKeyPemWo NOTE: This field is write-only and its value will not be updated in state as part of read operations.
privateKeyPemWoVersion The version of the privateKeyPemWo write-only private key. Because the write-only key is not stored in state, this version is the only signal the provider has that the key changed: increment it to force the certificate request to be re-issued when rotating the key.
subject The subject for which a certificate is being requested. The acceptable arguments are all optional and their naming is based upon Issuer Distinguished Names (RFC5280) section.
uris List of URIs for which a certificate is being requested (i.e. certificate subjects).
Implementation
const CertRequestState({
this.certRequestPem,
this.dnsNames,
this.ipAddresses,
this.keyAlgorithm,
this.privateKeyPem,
this.privateKeyPemWo,
this.privateKeyPemWoVersion,
this.subject,
this.uris,
});