Skip to content
Docs Try Aspire

HttpsCertificateAnnotation Properties

Class Properties 3 members
An annotation that associates an HTTPS/TLS server certificate with a resource.
Certificate Section titled Certificate nullable X509Certificate2?
Sets an X509Certificates.X509Certificate2 instance associated with this annotation. If a certificate is provided, it must have a private key; otherwise, an ArgumentException is thrown when setting the value.
public X509Certificate2? Certificate { get; init; }
Gets or sets a parameter resource that contains the password for the private key of the certificate.
public ParameterResource? Password { get; init; }
UseDeveloperCertificate Section titled UseDeveloperCertificate nullable bool?
Gets or sets a value indicating whether the resource should use a platform developer certificate for its key pair.
public bool? UseDeveloperCertificate { get; init; }