# PerlAppResource.WithPerlCertificateTrust

- Module: [CommunityToolkit.Aspire.Hosting.Perl](/reference/api/go/communitytoolkit.aspire.hosting.perl.md)
- Defined on: [PerlAppResource](/reference/api/go/communitytoolkit.aspire.hosting.perl/perlappresource.md)
- Version: `13.6.1`
- 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

```go
type PerlAppResource interface {
    // ... omitted for brevity
    WithPerlCertificateTrust() PerlAppResource
}
```

## Signature

```go
WithPerlCertificateTrust() PerlAppResource
```

## Returns

[`PerlAppResource`](/reference/api/go/communitytoolkit.aspire.hosting.perl/perlappresource.md) -- A reference to the `IResourceBuilder`.

Returns a handle; failures surface later via `Err()`.

## Defined on

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