Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

CreateCertificateFile

Method
📦 Aspire.Hosting v17.0.0
func (ContainerFileSystemCallbackContext) CreateCertificateFile(
name string,
options ...*CreateCertificateFileOptions,
) ContainerFileSystemItem

Signature

methodCreateCertificateFile
Creates a PEM container certificate file entry with the OpenSSL subject-hash symlink.
CreateCertificateFile(
name string,
options ...*CreateCertificateFileOptions,
) ContainerFileSystemItem
namestringThe simple file name (no path separators).
options...*CreateCertificateFileOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*CreateCertificateFileOptions argument.

Contents*stringThe inline PEM-encoded contents of the certificate. Mutually exclusive with sourcePath.
SourcePath*stringAn absolute path to a PEM file on the host to copy. Mutually exclusive with contents.
Owner*float64The owner UID, or null to inherit.
Group*float64The group GID, or null to inherit.
Mode*float64The Unix file mode as an integer (for example 0o644), or null to inherit.
ContinueOnError*boolWhether to ignore errors creating this file.
ContainerFileSystemItem

The created certificate file entry.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: