Thank you for reaching out.
Based on your response above
Configuring the .io address to alias the vault.azure.net still ends up with the hostname mismatch error. The cert only contains the latter, not must custom domain. Isn't this by design for HTTPS? Am i missing something?
Yes, your deduction here is correct. This is a limitation by design. When you send a HTTPS request to the KeyVault the HostName should match <your_keyvault_name>.vault.azure.com
in order to successfully complete the TLS handshake. Even when you added the CNAME for <your_keyvault_name>.vault.azure.com
in your stage.app.io
DNS zone the https request to vault.stage.app.io
will still throw the IP/Host mismatch error as the hostname will not match with the TLS certificate of the KeyVault service. Currently it is not supported to onboard a custom domain with HTTPS support for Azure Key Vault.
If you wish to add this as a feature to Azure Key Vault. Please feel free to file feedback on our feedback portal.
Hope this helps! Please let me know if you have any additional questions. Thank you!
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.