Is the Letsencrypt (certbot) plugin working for you on Debian 11?
Yes with,
Code
- apt install certbot
- vi /var/www/imscp/gui/plugins/LetsEncrypt/backend/LetsEncrypt.pm +266
- # $rs = execute(
- # [ "$main::imscpConfig{'PLUGINS_DIR'}/LetsEncrypt/bin/certbot-auto", '--non-interactive', '--no-self-upgrade', '--version' ],
- # \$stdout, \$stderr
- # ) == 0 or die( $stderr );
- # debug( $stdout ) if $stdout
- in /var/www/imscp/engine/PerlLib/iMSCP/OpenSSL.pm
- '/usr/bin/openssl',
- 'verify',
- # ( length $self->{'ca_bundle_container_path'}
- # ? ( '-CAfile', $self->{'ca_bundle_container_path'} ) : ()
- # ),
- '-purpose', 'sslserver',
- $self->{'certificate_container_path'}
- rm /var/www/imscp/gui/plugins/LetsEncrypt/bin/certbot-auto
- ln -s /usr/bin/certbot /var/www/imscp/gui/plugins/LetsEncrypt/bin/certbot-auto
- rm /usr/local/sbin/certbot
- ln -s /usr/bin/certbot /usr/local/sbin/certbot
- and add the cronjobs in /etc/cron.d/imscp
- @hourly root /usr/bin/perl /var/www/imscp/gui/plugins/LetsEncrypt/cron/pending.pl > /dev/null 2>&1
- # imscp [Plugin::LetsEncrypt::pending] entry ENDING
- # imscp [Plugin::LetsEncrypt::renew] entry BEGIN
- @daily root /usr/bin/perl /var/www/imscp/gui/plugins/LetsEncrypt/cron/renew.pl > /dev/null 2>&1
- # imscp [Plugin::LetsEncrypt::renew] entry ENDING