An open API service indexing awesome lists of open source software.

https://github.com/liamca/lets_encrypt_https_azure_container_instance

How to Create an HTTPS Certificate for Azure Container Instance using Let's Encrypt
https://github.com/liamca/lets_encrypt_https_azure_container_instance

Last synced: about 2 months ago
JSON representation

How to Create an HTTPS Certificate for Azure Container Instance using Let's Encrypt

Awesome Lists containing this project

README

          

# How to Create an HTTPS Certificate for Azure Container Instance using Let's Encrypt

Deploy [this image](https://hub.docker.com/repository/docker/liamca/aci-lets-encrypt/general) to the container instance you wish to create the certificate for. Here is an example of an AZ command (enter valid values for resource group, domain name and region)

```
az container create --resource-group --name --image liamca/aci-lets-encrypt --cpu 1 --memory 4 --dns-name-label --ports 80 --location
```

Then download certbot (https://certbot.eff.org/) to your local computer and run the following (from a command prompt with Administrator access) replacing the Domain Name and the region:

```
certbot certonly --manual -d ..azurecontainer.io
```

This will give you the challenge response string that needs to be added to this Azure Container Instance. Do not press enter or cancel the certbot process. We will come back to it. From a browser enter the challenge response string.

```
http://..azurecontainer.io/save_challenge/
```

You should see a message indicating it saved the challenge response string.

Go back to the certbot process and press ENTER to let certbot validate your challenge response string

Make note of the location where the certificate and keys are stored.

At this point you can delete the Azure Container Instance.