# ListenerTlsFileCertificateProperty

An object that represents a local file certificate.

The certificate must meet specific requirements and you must have proxy authorization enabled. For more information, see [Transport Layer Security (TLS)](https://docs.aws.amazon.com/app-mesh/latest/userguide/tls.html#virtual-node-tls-prerequisites) .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appmesh as appmesh } from 'aws-cdk-lib';
const listenerTlsFileCertificateProperty: appmesh.CfnVirtualNode.ListenerTlsFileCertificateProperty = {
  certificateChain: 'certificateChain',
  privateKey: 'privateKey',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appmesh as appmesh

listener_tls_file_certificate_property = appmesh.CfnVirtualNode.ListenerTlsFileCertificateProperty(
    certificate_chain="certificateChain",
    private_key="privateKey"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appmesh.*;

ListenerTlsFileCertificateProperty listenerTlsFileCertificateProperty = ListenerTlsFileCertificateProperty.builder()
        .certificateChain("certificateChain")
        .privateKey("privateKey")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppMesh;

var listenerTlsFileCertificateProperty = new ListenerTlsFileCertificateProperty {
    CertificateChain = "certificateChain",
    PrivateKey = "privateKey"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

listenerTlsFileCertificateProperty := &ListenerTlsFileCertificateProperty{
	CertificateChain: jsii.String("certificateChain"),
	PrivateKey: jsii.String("privateKey"),
}
```

## Properties

- `certificateChain`: string (required) — The certificate chain for the certificate.

- `privateKey`: string (required) — The private key for a certificate stored on the file system of the virtual node that the proxy is running on.
