Securing App Service with Certificates and TLS
This lesson explains certificate sources, TLS bindings and the settings that enforce secure connections.
Learning outcomes
After completing this lesson, you will be able to:
- Distinguish between managed certificates, App Service certificates, Key Vault certificates and uploaded certificates.
- Distinguish between SNI and IP based TLS bindings.
- Describe HTTPS Only, minimum TLS version and related settings.
Certificate sources
Certificates are managed on the app's Certificates page and require the Basic tier or higher for TLS bindings. The following comparison summarizes the options.
An App Service managed certificate is issued by DigiCert for a specific custom domain that is already mapped to the app, renewed automatically about every six months, and cannot be exported; it does not support wildcard domains or apps that are not publicly accessible. An App Service certificate is bought in Azure (Standard or Wildcard), stored in a Key Vault that you own, and can be used by several apps. Certificates imported from Key Vault require that App Service can read the vault; an uploaded certificate must be a password-protected PFX file with the full chain and a private key.
The following diagram compares certificate options for a single automatically renewed certificate that covers all subdomains.

Choosing a certificate
TLS bindings
A TLS/SSL binding associates a certificate with a custom domain on the Custom domains page. SNI SSL bindings use Server Name Indication, so several domains share the app's IP address; they are free and supported by all modern clients. An IP based SSL binding gives the domain a dedicated IP address, which changes the app's inbound IP (and therefore the A record) and incurs an hourly charge after any included IP SSL connection.
SNI SSL or IP based SSL?
Enforcing secure connections
On the app's Configuration or TLS/SSL settings, HTTPS Only redirects all HTTP requests to HTTPS (enabled by default for new apps). Minimum inbound TLS version rejects clients using older protocols; the default is TLS 1.2, and TLS 1.3 can be required. A minimum TLS cipher suite can also be set in higher tiers. End-to-end TLS encryption encrypts traffic between the front ends and the workers, and client certificates (incoming client certificates) require clients to present a certificate for mutual TLS. Apps that call other services can load certificates with the WEBSITE_LOAD_CERTIFICATES setting.
Securing connections
Choosing a certificate
A company hosts api.contoso.com, app.contoso.com and portal.contoso.com on three App Service apps and plans to add more subdomains each quarter. The security team wants one certificate covering all subdomains, renewed automatically and stored in the company's Key Vault. What should you use?
Buy an App Service certificate of type Wildcard for *.contoso.com, store it in the company's Key Vault, import it into each app and create SNI SSL bindings. Managed certificates are free but do not support wildcards and would need one certificate per host name. Uploading a PFX would require manual renewal.
Can an App Service managed certificate secure *.contoso.com?
Show answer
No. Managed certificates do not support wildcard domains.
Exam Tips
Remember for the exam
- Managed certificates are free and auto-renewed but do not support wildcards and are not exportable.
- SNI SSL is free; IP based SSL gives a dedicated IP and changes the inbound address.
- HTTPS Only redirects HTTP to HTTPS; minimum TLS version rejects old clients.
- TLS bindings need Basic tier or higher.