# PerlAppResource.withPerlCertificateTrust

- Module: [CommunityToolkit.Aspire.Hosting.Perl](/reference/api/typescript/communitytoolkit.aspire.hosting.perl.md)
- Defined on: [PerlAppResource](/reference/api/typescript/communitytoolkit.aspire.hosting.perl/perlappresource.md)
- Version: `13.4.0`
- Kind: `method`

Configures certificate trust for the Perl application by setting SSL/TLS environment variables that common Perl HTTP libraries respect. Sets `SSL_CERT_FILE` (IO::Socket::SSL / LWP), `PERL_LWP_SSL_CA_FILE` (LWP::UserAgent), and `MOJO_CA_FILE` (Mojolicious) to the certificate bundle path provided by Aspire.

## Definition

```typescript
interface PerlAppResource {
  // ... omitted for brevity
  withPerlCertificateTrust(): PerlAppResource;
}
```

## Signature

```typescript
withPerlCertificateTrust(): PerlAppResource
```

## Returns

[PerlAppResource](/reference/api/typescript/communitytoolkit.aspire.hosting.perl/perlappresource.md) `builder`

## Defined on

- [PerlAppResource](/reference/api/typescript/communitytoolkit.aspire.hosting.perl/perlappresource.md) -- `handle`
