To enforce security controls and inspect encrypted traffic, configure
Transport Layer Security (TLS) inspection policies for
Cloud Next Generation Firewall (Cloud NGFW). This document describes how to manage
TLS inspection policies in your project.

This document is intended for network administrators and security
administrators who manage TLS inspection configurations and secure network
connections.

Before managing TLS inspection policies, an existing policy must be
configured in your project. For more information about core concepts of
TLS inspection---such as **Certificate Authority (CA) pools** , Google-managed
**Certificate Authority Service** , and **trust configs** ---see the
[TLS inspection overview](https://docs.cloud.google.com/firewall/docs/about-tls-inspection.md.txt).

## View details for a TLS inspection policy

You can view information about the TLS inspection policy that you created in
your project.

#### Permissions required for this task

To perform this task, you must have been granted the following permissions
*or* one of the following IAM roles.

**Permissions**

- `networksecurity.firewallEndpointAssociations.list`
- `networksecurity.gatewaySecurityPolicies.list`
- `networksecurity.tlsInspectionPolicies.get`

**Roles**

- `compute.securityAdmin`
- `compute.networkAdmin`
- `compute.networkUser`

### Console

1. In the Google Cloud console, go to the **TLS inspection policies** page.


   [Go to TLS inspection policies](https://console.cloud.google.com/net-security/tls/policies/list)

   <br />

2. In the project selector menu, select your project.

3. The TLS inspection policies are listed in the **TLS inspections** section.

4. To view the details, click the name of your TLS inspection policy.

## List all TLS inspection policies

You can list all the TLS inspection policies in a project.

#### Permissions required for this task

To perform this task, you must have been granted the following permissions
*or* one of the following IAM roles.

**Permissions**

- `networksecurity.firewallEndpointAssociations.list`
- `networksecurity.gatewaySecurityPolicies.list`
- `networksecurity.locations.list`
- `networksecurity.tlsInspectionPolicies.list`

**Roles**

- `compute.securityAdmin`
- `compute.networkAdmin`
- `compute.networkUser`

### Console

1. In the Google Cloud console, go to the **TLS inspection policies** page.


   [Go to TLS inspection policies](https://console.cloud.google.com/net-security/tls/policies/list)

   <br />

2. In the project selector menu, select your project.

3. The TLS inspection policies are listed in the **TLS inspections** section.

### gcloud

To list all TLS inspection policies, use the
[`gcloud network-security tls-inspection-policies list` command](https://docs.cloud.google.com/sdk/gcloud/reference/network-security/tls-inspection-policies/list):

```
gcloud network-security tls-inspection-policies list \
    --project PROJECT_ID \
    --location REGION
```

Replace the following:

- `PROJECT_ID`: the project ID for the TLS inspection policy
- `REGION`: the name of the region for which you want to list the TLS inspection policy

## Edit a TLS inspection policy

You can modify an existing TLS inspection policy in your project.

#### Permissions required for this task

To perform this task, you must have been granted the following permissions
*or* one of the following IAM roles.

**Permissions**

- `certificatemanager.trustconfigs.list`
- `certificatemanager.trustconfigs.use`
- `privateca.caPools.list`
- `privateca.caPools.use`
- `privateca.certificateAuthorities.list`
- `networksecurity.operations.get`
- `networksecurity.tlsInspectionPolicies.get`
- `networksecurity.tlsInspectionPolicies.list`
- `networksecurity.tlsInspectionPolicies.update`

**Roles**

- `compute.securityAdmin`
- `compute.networkAdmin`

### Console

1. In the Google Cloud console, go to the **TLS inspection policies** page.


   [Go to TLS inspection policies](https://console.cloud.google.com/net-security/tls/policies/list)

   <br />

2. In the project selector menu, select your project.

3. The TLS inspection policies are listed in the **TLS inspections** section.

4. To edit a policy, click the name of your TLS inspection policy.

5. Click **Edit**.

6. Modify the required fields. For more information about each field, see
   [Create a TLS inspection policy](https://docs.cloud.google.com/firewall/docs/setup-tls-inspection.md.txt#create-tls-inspection-policy).

7. Click **Save**.

## Delete a TLS inspection policy

You can delete a TLS inspection policy from your project. However, if the TLS
inspection policy is referenced by a firewall endpoint association, that TLS
inspection policy cannot be deleted.

#### Permissions required for this task

To perform this task, you must have been granted the following permissions
*or* one of the following IAM roles.

**Permissions**

- `networksecurity.operations.get`
- `networksecurity.tlsInspectionPolicies.delete`

**Roles**

- `compute.securityAdmin`
- `compute.networkAdmin`

### Console

1. In the Google Cloud console, go to the **TLS inspection policies** page.


   [Go to TLS inspection policies](https://console.cloud.google.com/net-security/tls/policies/list)

   <br />

2. In the project selector menu, select your project.

3. The TLS inspection policies are listed in the **TLS inspections** section.

4. To delete a TLS inspection policy, select the checkbox next to its name.

5. Click **Delete**.

6. Click **Delete** again.

### gcloud

To delete a TLS inspection policy, use the
[`gcloud network-security tls-inspection-policies delete` command](https://docs.cloud.google.com/sdk/gcloud/reference/network-security/tls-inspection-policies/delete):

```
gcloud network-security tls-inspection-policies delete \
    projects/PROJECT_ID/locations/REGION/tlsInspectionPolicies/TLS_INSPECTION_NAME \
    --location REGION
```

Replace the following:

- `PROJECT_ID`: the project ID of the TLS inspection policy
- `TLS_INSPECTION_NAME`: the name of the TLS inspection
- `REGION`: the region where the TLS inspection policy is created

## What's next?

- [Set up TLS inspection](https://docs.cloud.google.com/firewall/docs/setup-tls-inspection.md.txt)
- [Configure intrusion detection and prevention service](https://docs.cloud.google.com/firewall/docs/configure-intrusion-prevention.md.txt)
- [Create and manage firewall endpoints](https://docs.cloud.google.com/firewall/docs/configure-firewall-endpoints.md.txt)