SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Send mTLS Requests Using Istio Egress Gateway in SAP BTP, Kyma Runtime

Learn how to configure and use the Istio egress Gateway to allow mTLS-secured outbound traffic between clusters.

Overview

🎓 intermediate 30 min. SAP BTP Kyma RuntimeIntermediateCloudSAP Business Technology Platform

You will learn

  • โœ”How to generate mTLS certificates
  • โœ”How to configure the Istio egress Gateway to allow mTLS-secured outbound traffic
  • โœ”How to send HTTP requests using the configured Istio egress Gateway
Unknown U Unknown May 29, 2025
Created by March 24, 2025
Contributors

Prerequisites

Prerequisites

Steps

Intro

To follow this tutorial, you must prepare two clusters. You will use one of them to host the target workload, and the other to send requests. The tutorial guides you through the process of generating mTLS certificates and configuring the Istio egress Gateway in SAP BTP, Kyma runtime. This configuration allows you to make mTLS-secured requests from your Kyma runtime cluster to a workload in another cluster.


Step 1 Generate mTLS certificates
โ€”

  1. Export the kubeconfig file of the cluster that will contain the target workload:

    Shell/Bash
    export KUBECONFIG={target-workload-cluster-config}
  2. Export the name of your domain (for example, nginx.example.com), the domain of the client cluster (for example, client.example.com), and the namespace you wnat to use. You will use these values throughout the whole tutorial.

    Shell/Bash
    export DOMAIN={your-workload-host}
    export CLIENT={client-cluster-domain}
    export NAMESPACE={your-namespace}
  3. Generate the root certificate:

    Shell/Bash
    openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -subj "/O=example Inc./CN=$DOMAIN" -keyout egress.key -out egress.crt
  4. Generate the host certificate:

    Shell/Bash
    openssl req -out "$DOMAIN".csr -newkey rsa:2048 -nodes -keyout "$DOMAIN".key -subj "/CN="$DOMAIN"/O=some organization"
    openssl x509 -req -sha256 -days 365 -CA egress.crt -CAkey egress.key -set_serial 0 -in "$DOMAIN".csr -out "$DOMAIN".crt
  5. Generate the client certificate:

    Shell/Bash
    openssl req -out "$CLIENT".csr -newkey rsa:2048 -nodes -keyout "$CLIENT".key -subj "/CN="$CLIENT"/O=client organization"
    openssl x509 -req -sha256 -days 365 -CA egress.crt -CAkey egress.key -set_serial 1 -in "$CLIENT".csr -out "$CLIENT".crt
Step 2 Prepare a cluster with a workload
+
Step 3 Prepare a cluster with an egress Gateway
+
Step 4 Send HTTP requests
+
Step 5 Enhance security by implementing NetworkPolicies
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 5
1. Generate mTLS certificates 2. Prepare a cluster with a workload 3. Prepare a cluster with an egress Gateway 4. Send HTTP requests 5. Enhance security by implementing NetworkPolicies

Learn more →