Episode1 - Build the infrastructure using Azure Terraform and Generate the Lets Encrypt Certificate
Episode2 - Create and contenerize ASP.Net Core Web API and WCF app then deploy to AKS ( Windows and Linux Node Pool)
Episode3 - Configure API Management External / Internal Endpoints and publish API's that runs from AKS
Episode 1 - Build the infrastructure using Azure Terraform and Generate the Lets Encrypt Certificate
- Create Infra using Azure Terraform
- Generate Lets Encrypt Certificate using certbot,and add new "TXT" record to Azure DNS Zone
- Convert the certificate .pem to .pfx format
- Upload Certificate to Application Load Balancer
terraform init
terraform plan
terraform apply
git clone https://github.com/certbot/certbot.git
cd certbot && ./certbot-auto
sudo apt-get install letsencrypt
sudo chown root ./certbot-auto
sudo chmod 0755 ./certbot-auto
sudo ./certbot-auto certonly --manual --preferred-challenges=dns --email <YourEmailHere> --server https://acme-v02.api.letsencrypt.org/directory --agree-tos -d *.aks01-web.xxxxxxx.net
_acme-challenge.aks01-web.xxxxxxx.net with the following value:
B4lrT50H2kztfTZGKvdQFOemecgfIYSKibahhnhCpfk
sudo su root
cd /etc/letsencrypt/live/aks01-web.xxxxxxx.net
openssl pkcs12 -export -out cert01.pfx -inkey privkey.pem -in fullchain.pem
Enter a Password : [CertificatePassword]
4. Upload the Lets Encrypt Certificate to App Gateway, For testing add new Listener and backend pool connected to a VM with Default IIS configurations. In Production you may need to purchase shiny certificate.
4.2 Next Episode to create and contenerize ASP.Net Core Web API and WCF app then deploy both api to AKS
Episode1 - Build the infrastructure using Azure Terraform and Generate the Lets Encrypt Certificate
Episode2 - Create and contenerize ASP.Net Core Web API and WCF app then deploy to AKS ( Windows and Linux Node Pool)
Episode3 - Configure API Management External / Internal Endpoints and publish API's that runs from AKS
Microsoft Azure Container Ecosystem - "nugget series" > Click this Link
Note: My Favorite -> Microsoft :D