obynio / certbot-plugin-gandi

Certbot plugin for authentication using Gandi LiveDNS
https://pypi.org/project/certbot-plugin-gandi/
MIT License
195 stars 27 forks source link

Plugin broken due to authentication change (API Key deprecated by Gandi) #46

Closed m0nkeyc0de closed 11 months ago

m0nkeyc0de commented 1 year ago

Hello, This plugin is currently broken as it uses the deprecated authentication scheme with with the API Key, according to the official documentation.

In order to fix that, the "_headers" function must be modified as follows (replace Apikey with Bearer):

def _headers(cfg):
    return {
        'Content-Type': 'application/json',
        'Authorization': 'Bearer ' + cfg.api_key
    }