Certbot: Difference between revisions

imported>Onny
mNo edit summary
imported>Onny
No edit summary
Line 29: Line 29:


Currently there are several ''certbot'' plugins [https://search.nixos.org/packages?channel=22.05&from=0&size=50&sort=relevance&type=packages&query=certbot-dns already packaged]. While the plugin usage should be similar for most of them, you should look up upstream documentation on how to use thim. In this example we're going to configure and use [https://github.com/oGGy990/certbot-dns-inwx the plugin] for the hosting provider [https://www.inwx.com/en INWX].
Currently there are several ''certbot'' plugins [https://search.nixos.org/packages?channel=22.05&from=0&size=50&sort=relevance&type=packages&query=certbot-dns already packaged]. While the plugin usage should be similar for most of them, you should look up upstream documentation on how to use thim. In this example we're going to configure and use [https://github.com/oGGy990/certbot-dns-inwx the plugin] for the hosting provider [https://www.inwx.com/en INWX].
{{Note|Following example describes the usage of an experimental plugin which is still being reviewed as an open PR and might not be ready for production.}}
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
environment.systemPackages = with pkgs; [
  ( certbot.withPlugins (ps: with ps; [ python310Packages.certbot-dns-inwx ]) )
];
</nowiki>}}


<syntaxhighlight lang="console">
<syntaxhighlight lang="console">
# nix-env -iA nixos.python310Packages.certbot-dns-inwx
# certbot certonly -a dns-inwx -d example.org
# certbot certonly -a dns-inwx -d example.org
</syntaxhighlight>
</syntaxhighlight>