Hi Manpreet Singh,
Export the Certificate from Azure
1.Navigate to Azure Portal → App Service Certificates.
2.Find your wildcard certificate and click on it.
3.Under “Certificate Configuration”, click “Export Certificate”.
4.Choose PFX format and download the certificate (.pfx file).
Once you have the .pfx file, you need to extract the certificate and private key using OpenSSL:
Extract the private key
openssl pkcs12 -in your-certificate.pfx -nocerts -nodes -out key.pem
Extract the certificate
openssl pkcs12 -in your-certificate.pfx -clcerts -nokeys -out cert.pem
You will be prompted, specify a password for the export operation. When you upload your TLS/SSL certificate to App Service later, you must provide the password.
Now, create a Kubernetes secret using the extracted cert.pem and key.pem:
kubectl create secret tls hubon-tls-secret \
--cert=cert.pem \
--key=key.pem \
-n your-namespace
This will store your wildcard certificate as a TLS secret, which can be referenced in your Ingress configuration.
Ensure your Ingress YAML file references the hubon-tls-secret:
tls:
- hosts:
- staging.letshubon.com
secretName: hubon-tls-secret
Once applied, your Ingress should use the wildcard certificate for secure HTTPS traffic.
Please refer this document:
https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-certificate?tabs=apex%2Crbac%2Cazure-cli
If the comment was helpful, please don't forget to click "Upvote".
If you have any further queries, please let us know we are glad to help you.
Thank You.