Installing and configuring the Gandi.net plugin
The Let's Encrypt CLI certificate manager, certbot in it's standard configuration only supports two types of challenges: HTTP, which can be easily automated, but can't be used for the creation of wildcard certificates and DNS, which can be used to create wildcard certificates but can't be easily automated (since you must manually add the challenges to your domain each time).
Luckily, many domain providers support automatic certificate renewal through the use of APIs. In this case, we will be configuring a certbot plugin that integrates with Gandi.net's domain API.
Installing certbot via snapd
The current version of certbot provided via apt repositories is too old, so we must instead use the snap version. Snapd should already be installed on Ubuntu 20.04, but if not it can be added via the following command:
sudo apt install snapd
Once installed, we want to ensure that the core snap is up to date:
sudo snap install core; sudo snap refresh core
This should provide an output similar to below: