Protocol::ACME::Challenge::SimpleSSH(3pm)

Protocol::ACME::Challenge::SimpleSSH3pm

Challenge handler for simplehttp via ssh

Usage

 use Protocol::ACME::Challenge::SimpleSSH;
 my $args = { 'www_root' => "/path/to/htdocs/or/equivalent",
              'ssh_host' => "ssh.example.com" };
 my $challenge = Protocol::ACME::Challenge::SimpleSSH->new( $args );

...

 $acme->handle_challenge( $challenges->{$domain} );

Overview

The "Protocol::ACME::Challenge::SimpleSSH" class is a handler intended to be run when the ACME script is run on a different machine than the web server. It will create the challenge file in the designated location via SSH. Note that there is no attempt to escalate privleges so the location will need to be writabel by the ssh user.

Constructor methods

The following constructor methods are available:

$acme = Protcol::ACME::Challenge::SimpleSSH->new( %options )

This method constructs a new "Protocol::ACME::Challenge::SimpleSSH" object and returns it. Key/value pair arguments may be provided to set up the initial state. The may be passed in as a hash or a hashref. The following options correspond to attribute methods described below. Items markes with a * are required.

   KEY                     DEFAULT
   -----------             --------------------
   *www_root               Path to web root that will handle the HTTP
                           challenge
   *ssh_host               Hostname of the web server for ssh access

Methods

handle( $challenge, $fingerprint )

This is intended to be called indirectly via the ACME driver class. "handle" will take care of all of the conditions necessary to satisfy the challenge sent by Let's Encrypt.

cleanup

"cleanup" will remove the challenge file.

Acknowledgements

Author

Stephen Ludin, "<sludin at ludin.org>"

Bugs

Please report any bugs or feature requests to "bug-protocol-acme at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Protocol-ACME-Challenge-SimpleSSH>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

From libprotocol-acme-perl 1.01-2 in Debian 9 (Stretch). Parsed by carta from the page's man source.