HttpsCertificateAnnotation
Class sealed net10.0
An annotation that associates an HTTPS/TLS server certificate with a resource.
namespace Aspire.Hosting.ApplicationModel;
public sealed class HttpsCertificateAnnotation : Aspire.Hosting.ApplicationModel.IResourceAnnotation{ // ...}Constructors1
Section titled ConstructorsProperties3
Section titled PropertiesCertificateget; initX509Certificate2? 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. Passwordget; init Gets or sets a parameter resource that contains the password for the private key of the certificate.
UseDeveloperCertificateget; initbool? Gets or sets a value indicating whether the resource should use a platform developer certificate for its key pair.