Skip to content
DocsTry Aspire
DocsTry

HttpsCertificateAnnotation Properties

ClassProperties3 members
An annotation that associates an HTTPS/TLS server certificate with a resource.
CertificateSection titled CertificatenullableX509Certificate2?
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; }
UseDeveloperCertificateSection titled UseDeveloperCertificatenullablebool?
Gets or sets a value indicating whether the resource should use a platform developer certificate for its key pair.
public bool? UseDeveloperCertificate { get; init; }