Reputation: 962
I'm trying to set up an end-to-end SSL connection using Application Gateway to communicate to an AppService instance. The AppService instance has a custom domain with SSL.
Now I would like to secure the connection from the client to the Application Gateway. When adding an HTTPS listener for the gateway, I'm asked to upload a .pfx
certificate. I have managed to set up the entire process with a self signed certificate, as described in this guide and here, however I couldn't find any information on how to generate a pfx certificate to assign to the listener in production.
My questions are the following:
Upvotes: 4
Views: 17629
Reputation: 76
The gateway can't be assigned a domain, and all I have is the public IP. How should this certificate be obtained in a production environment for it to work on that IP address?
SSL certificates are not IP specific. In your case, for end-to-end SSL, you need:
Alternatively, you can update existing DNS record for app service to point to WAF IP and use existing cert to setup listener.
Can I obtain it on Azure, or using a third-party service (if yes, any suggestion)? You can use Azure Key Vault to obtain certificates from DigiCert or GlobalSign.
Upvotes: 6
Reputation: 682
For your scenario, since you do not have the custom domain and are relying on the default DNS name of app gateway's public ip address - so you wont be able to configure the SSL/TLS for your listener since you do not own cloudapp.net domain and hence wont have pfx for it. Note that it has to be a certificate signed by the well known CA else your client apps would end up getting an error related to certificate trust (unless they have root CA installed at their end).
For better control over incoming routes, it would be recommended for production environment to get your domain and and then purchase a SSL certificate for your domain (wildcard or naked) that would then let you upload .pfx file to app gateway listener. In that case you can purchase the certificate from Azure or from any other vendor.
Upvotes: 3