# IResourceWithEnvironment.withHttpsDeveloperCertificate

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Defined on: [IResourceWithEnvironment](/reference/api/typescript/aspire.hosting/iresourcewithenvironment.md)
- Version: `13.4.0`
- Kind: `method`

Indicates that a resource should use the developer certificate key pair for HTTPS endpoints at run time. Currently this indicates use of the ASP.NET Core developer certificate. The developer certificate will only be used when running in local development scenarios; in publish mode resources will use their default certificate configuration.

## Definition

```typescript
interface IResourceWithEnvironment {
  // ... omitted for brevity
  withHttpsDeveloperCertificate(password?: ParameterResource): IResourceWithEnvironment;
}
```

## Signature

```typescript
withHttpsDeveloperCertificate(password?: ParameterResource): IResourceWithEnvironment
```

## Parameters

- `password` ([ParameterResource](/reference/api/typescript/aspire.hosting/parameterresource.md)) `optional`

## Returns

[IResourceWithEnvironment](/reference/api/typescript/aspire.hosting/iresourcewithenvironment.md) `builder`

## Defined on

- [IResourceWithEnvironment](/reference/api/typescript/aspire.hosting/iresourcewithenvironment.md) -- `interface`
