# HttpsCertificateAnnotation Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [HttpsCertificateAnnotation](/reference/api/csharp/aspire.hosting/httpscertificateannotation.md)
- Kind: `Properties`
- Members: `3`

An annotation that associates an HTTPS/TLS server certificate with a resource.

## Certificate

- Name: `Certificate`
- Modifiers: `nullable` `get; init`
- Returns: `X509Certificate2?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/HttpsCertificateAnnotation.cs)

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.

```csharp
public X509Certificate2? Certificate { get; init; }
```

## Password

- Name: `Password`
- Modifiers: `nullable` `get; init`
- Returns: [ParameterResource?](/reference/api/csharp/aspire.hosting/parameterresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/HttpsCertificateAnnotation.cs)

Gets or sets a parameter resource that contains the password for the private key of the certificate.

```csharp
public ParameterResource? Password { get; init; }
```

## UseDeveloperCertificate

- Name: `UseDeveloperCertificate`
- Modifiers: `nullable` `get; init`
- Returns: `bool?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/HttpsCertificateAnnotation.cs)

Gets or sets a value indicating whether the resource should use a platform developer certificate for its key pair.

```csharp
public bool? UseDeveloperCertificate { get; init; }
```
