Commit Graph

109 Commits

Author SHA1 Message Date
Wolfgang Link
435e1726d1 Create the plugin config.
At the moment, Proxmox has two different configurations that require different properties.
DNSChallange requires credentials for the DNSAPI.
Standalone has no settings because Letsencrypt only supports port 80 with the http-01 challenge.
This configuration is registered in the pve-manager.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2020-04-15 17:48:14 +02:00
Wolfgang Link
762af3b15c Refactor extract_callenge for code reuse.
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2020-04-15 15:00:37 +02:00
Wolfgang Link
5460050ded Move code from pve-common
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2020-04-15 14:58:32 +02:00
Wolfgang Link
2056960537 Add submodule acme.sh for DNS plugins
Copy the DNS plugins form acme.sh

The project acme.sh can be found here.
https://github.com/Neilpang/acme.sh

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2020-04-15 14:58:32 +02:00
Wolfgang Link
ece42f2f76 Implement feature setup and teardown functionality.
We use these functions to add and remove a txt record via the dnsapi.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2020-04-15 14:58:24 +02:00
Wolfgang Link
216d4f1df6 Add funtion to set DNSAPI variable
acme.sh DNS plugins expect a configuration in which the login information
is stored.
We pass the credentials with the command.
This function supports the expected behavior of the plugins.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2020-04-15 14:56:39 +02:00
Wolfgang Link
bb2e086404 Remove unnecessary Code and fixes.
This Code is not required in the Proxmox environment.
We know in our environment what we have as a tool-change.

Fix Code what does not work because variable or functions are missing.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2020-04-02 14:29:19 +02:00
Wolfgang Link
92b88a9e26 Copy the needed function form acme.sh
For the thin wrapper around acme.sh DNS plugins, the required functions are copied.
The project acme.sh can be found here.
https://github.com/Neilpang/acme.sh

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2020-04-02 14:29:19 +02:00
Wolfgang Link
9ce00d2fbc Add Debian Buildsystem config
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2020-04-02 14:29:16 +02:00