currently I want to connect a Cosmos DB instance, which is behind a service endpoint of a Subnet with an Application Gateway instance, which is behind another subnet.
Therefore I implemented a Https forward from an public IP to the Cosmos DB instance. However, the azure portal tells me that the DB is an unhealthy backend service and says that the certificate is not white-listed:
These are the steps I done so far:
- Create a TLS certificate for the connection from the App Gateway tot the Cosmos DB, where the Common Name (FQDN) is equal to to the URI of the Cosmos DB isntance in the Overview (example.documents.azure.com):
$ openssl genrsa -out priv-key-db.pem 4096
$ openssl req -new -key priv-key-db.pem -out csr-db.pem
$ openssl x509 -in csr-db.pem -out cert-db.cer -req -signkey priv-key-db.pem -days 365