Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that you would like to configure end to end TLS with Application Gateway.
While a self-signed certificate is not recommended for production traffic, azure application gateway is perfectly capable of supporting a self-signed certificate provided it is properly configured.
Now to address your queries,
#1 Is it possible to make App Gateway accept the certificate for testing purposes?
- As stated above, App Gateway can be configured to work with self-signed certificate
#2 My VM has no domain name, so I'm not able to get certified by a CA with a proper Common Name as private IP address will not suffice. Please help
- It does not matter that your VM has no domain name, it actually depends upon the application running inside.
- I believe you own a domain (such as fabrikam.com) by which you'd like to access the application gateway.
- As long as you own this domain, a CA can issue certificate for any of the subdomain (such as www.fabrikam.com or app.fabrikam.com) or even wildcard (*.fabrikam.com) as CN.
- You should configure the application running inside the VM, to use this certificate and accept traffic via "www.fabrikam.com" or any such domain.
- This is not the property of the VM and generally, getting a CN as private IP is not a good approach.
- For Apache and IIS applications, refer here
#3 If I generate self-signed cert with custom root CA, what should the CN be?
- The CN should be whatever the domain/FQDN you would want to access the VM with.
- It can be same as the FQDN used in front of Application gateway or different.
- Only thing to consider is, the custom root CA's CN and your backend servers' CN should be different.
- For e.g., if you want the server certificate's CN to be
www.fabrikam.com
, then the CN for the issuer can bewww.contoso.com
and
- For e.g., if you want the server certificate's CN to be
- A detailed analysis on how to properly create an Azure Application Gateway self-signed certificate with a custom root CA is given here
Kindly let us know if this helps or you need further assistance on this issue.
Thanks,
Kapil