]> git.proxmox.com Git - proxmox-acme.git/blobdiff - src/PVE/ACME/StandAlone.pm
Create the plugin config.
[proxmox-acme.git] / src / PVE / ACME / StandAlone.pm
index f48d6383b98065b3794f555eb570373e858b3020..0b4aaae0cd9618077a882bb7562d7bcf88e0e909 100644 (file)
@@ -12,6 +12,27 @@ sub supported_challenge_types {
     return { 'http-01' => 1 };
 }
 
+sub type {
+    return 'standalone';
+}
+
+sub properties {
+    return {};
+}
+
+sub options {
+    return {
+       nodes => { optional => 1 },
+       disable => { optional => 1 },
+    };
+}
+
+sub extract_challenge {
+    my ($self, $challenge) = @_;
+
+    return PVE::ACME::Challenge->extract_challenge($challenge, 'http-01');
+}
+
 sub setup {
     my ($class, $acme, $authorization) = @_;