# mTLS requirement

**URL:** <https://discuss.google.dev/t/mtls-requirement/45679>\
**Category:** Apigee\
**Tags:** private-cloud-deployment, integration\
**Created:** [September 9, 2021, 10:18am UTC](https://discuss.google.dev/t/mtls-requirement/45679 "2021-09-09T10:18:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjm2000](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/sjm2000/32/16933_2.png) [@sjm2000](https://discuss.google.dev/u/sjm2000)\
**Post date:** [September 9, 2021, 10:18am UTC](https://discuss.google.dev/t/mtls-requirement/45679/1 "2021-09-09T10:18:41Z")

</div>

Dear Team,

We have a requirement of mTLS on APIGEE private cloud 4.50 .

- Producer of the service is an external organization.
- Consumer is APIGEE on-premise 4.50

The service is protected by mutual TLS for outbound connections to external organization. Below are the steps as i understand is required.

1. APIGEE need to create a csr and send to an external organization .
2. The csr will be signed by external organization .
3. It needs to be installed on APIGEE . (for outbound connections to external organization).
4. After signing by external organization the certificate to be updated in APIGEE

**Do we have a step by step documentation as this must be a common scenario ?**

Regards

SM

---

<div class="post-metadata">

**Author:** ![mw970](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/mw970/32/113091_2.png) [@mw970](https://discuss.google.dev/u/mw970)\
**Post date:** [September 9, 2021, 3:30pm UTC](https://discuss.google.dev/t/mtls-requirement/45679/2 "2021-09-09T15:30:45Z")

</div>

My understanding of your setup is as follows:

- Client is Apigee Private Cloud 4.50.00
- External service requires 2-way/mTLS connection
- As such, Apigee Message processors will need to store client key and certificate in a keystore and send this to the target service which would need to verify same in order to establish a TLS connection

Can you confirm this is the desired configuration? If so, please elaborate on why a CSR process is needed - usually, the external provider at the target, would provide you with a client key and certificate to load into a keystore at Apigee for use in mTLS configuration.  
If your team is maintaining the target service also and is wishing to generate a CSR and private key to provide to a signing authority in order to obtain this certificate, most signing authorities have tutorials and even wizards for this. You can use openssl, java keytool, etc. SSL Shopper has this handy [guide for using OpenSSL to generate a CSR and private key](https://www.sslshopper.com/article-most-common-openssl-commands.html).

---

<div class="post-metadata">

**Author:** ![sjm2000](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/sjm2000/32/16933_2.png) [@sjm2000](https://discuss.google.dev/u/sjm2000)\
**Post date:** [September 9, 2021, 3:52pm UTC](https://discuss.google.dev/t/mtls-requirement/45679/3 "2021-09-09T15:52:25Z")

</div>

Here the client key Is generated at apigee end and provided to external provider at target to be signed by their own CA .

That’s the reason . Hope it’s clarified .

---

<div class="post-metadata">

**Author:** ![mw970](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/mw970/32/113091_2.png) [@mw970](https://discuss.google.dev/u/mw970)\
**Post date:** [September 9, 2021, 3:57pm UTC](https://discuss.google.dev/t/mtls-requirement/45679/4 "2021-09-09T15:57:51Z")

</div>

Thanks for clarifying, the link from sslshopper with openssl steps to generate CSR and key would be a good starting point.

---

<div class="post-metadata">

**Author:** ![API-Evangelist](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/api-evangelist/32/7651_2.png) [@API-Evangelist](https://discuss.google.dev/u/API-Evangelist)\
**Post date:** [September 11, 2021, 3:50am UTC](https://discuss.google.dev/t/mtls-requirement/45679/5 "2021-09-11T03:50:02Z")

</div>

Work with your internal PKI group (public key infra) for certificate provisioning who can guide with the CSR process. Follow below to enable 2-way ssl from apigee to backend service.

[https://docs.apigee.com/api-platform/system-administration/configuring-ssl-edge-backend-service](https://docs.apigee.com/api-platform/system-administration/configuring-ssl-edge-backend-service)

---

<div class="post-metadata">

**Author:** ![sjm2000](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/sjm2000/32/16933_2.png) [@sjm2000](https://discuss.google.dev/u/sjm2000)\
**Post date:** [September 11, 2021, 1:37pm UTC](https://discuss.google.dev/t/mtls-requirement/45679/6 "2021-09-11T13:37:56Z")

</div>

I was expecting this to be performed via user interface provided for on premise customers for key store .

**Menu-- admin – TLS certificates**

Any comments / suggestions ?

---

<div class="post-metadata">

**Author:** ![API-Evangelist](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/api-evangelist/32/7651_2.png) [@API-Evangelist](https://discuss.google.dev/u/API-Evangelist)\
**Post date:** [September 12, 2021, 8:08pm UTC](https://discuss.google.dev/t/mtls-requirement/45679/7 "2021-09-12T20:08:00Z")

</div>

Not sure what’s the thought process in general(if you comparing some other products :)) you need to procure certs (by internal /external) then you can just follow the instructions from the docs to to upload the certs and setup mutual tls.

Just FYI: Good read [https://docs.apigee.com/api-platform/system-administration/about-ssl](https://docs.apigee.com/api-platform/system-administration/about-ssl)
