Plugin for LetsEncrypt domains overview

Erulezz

Verified User
Joined
Sep 14, 2015
Messages
703
Location
🇳🇱
Plugin for easily displaying all domains on the server with active LetsEncrypt domains with the renewal dates.

Is it free?
Yes.

Screenshot:
letsencrypt_domains_screenshot1.png


Download & Installation:

- Go to DirectAdmin Plugin Manager (as admin)
- Install new plugin (from URL)

Code:
https://daplugins.erulezz.dev/letsencrypt_domains.tar.gz

- After installation the plugin is available under "Extra Features".

Standalone script:
After installation of the plugin you can also run a console script for example in /root:

Code:
ln -s /usr/local/directadmin/plugins/letsencrypt_domains/admin/letsencrypt_show_all.sh letsencrypt_show_all.sh

If you now login to your system you can run letsencrypt_show_all.sh and always have access to the latest version:

Code:
cd /root
./letsencrypt_show_all.sh

Latest version:
2.2

GitHub repository:
GitHub repository
 
Last edited:
I am afraid you get blocked by disable_fiunctions in php.ini:
Example :

disable_functions = exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,dl,popen,show_source,parse_ini_file
 
Ai, if that's true then it might not work on a lot of places including our servers.
There should be a way around this as a plugin, isn't there?
 
I tested it by adding shell_exec to disable_functions, and it works ?‍♂️

Verified it with phpinfo(): Loaded Configuration File => /usr/local/php80/lib/php.ini
So somehow disable_functions is cleared. I see the CB plugin is using a different php.ini:

#!/usr/local/bin/php -nc/usr/local/directadmin/plugins/custombuild/php.ini
 
I see the CB plugin is using a different php.ini:
It seems plugins have their own php.ini they are using.
Custombuild indeed where you are pointing to.
Softaculous has its own in /usr/local/directadmin/plugins/softaculous/php.ini
So maybe just to keep up the way plugins do it to keep consistant and prevent future issues, you can create a kindlike as softaculous and custombuild php.ini in:
/usr/local/directadmin/plugins/le-show-domains/php.ini or something like that? Unless php.ini is totally not needed.
Will test it on my systems tonight.
 
Call me stupid, I dont see any plugin link , only an .sh script ? :)
 
I tested it with shell_exec disabled in php.ini and it still works (PHP 8.0) ? I wonder if it has to do with CB version:

2832 - Clear disable_functions on command-line PHP calls.

Anyway, you can download it here;

Code:
https://daplugins.erulezz.dev/letsencrypt_domains.tar.gz

If you can test it that would be great (y). After install it appears like usual under Extra Features. It works without issues here on the Evolution skin. Later I will improve syntax highlighting.
 
Oke installed, and found a display issue.

Looks very nice.
But it only shows 10 domains to me, when I want to see the rest, scrolling my browser bar won't do any good because that's already at the end. I have to click in the section and then have to use my cursor to scroll down.

When I look at CSF, you can use the browser bar to scroll down.

It looks as if the LE list is devided into 2 blocks, the main head containing this:
LetsEncrypt renewal days (DirectAdmin config): 60
LetsEncrypt Account Email: [email protected]

Then a middle section with all domains and dates and so on. You have to click in this section to see all rest of the domains.

Maybe this can be fixed by some css code or something, I don't know.

I'm already happy with this anyway. :)
So it's just a suggestion if you have time left.
 
Oh this is great, the plugin manager even showed there was an update. From 1.0 to 1.2 if I've seen it correctly.

Working perfectly now, thank you!! (y)(y)
 
Hello @Erulezz
I might have just found another thing, but not really with the plugin but with the console command.

As the plugin, you have to scroll down to see more domains when there are a lot.
But I mostly use this plugin via SSH, in that case if there are 60 domains, only 10 are shown and no option to scroll.

Is there an easy fix for that?

Tip: Maybe it's best to edit the first post and change the title to "plugin for Letsencrypt overview/list" or something like that.
 
Yep, sorry, I ment purely via SSH, the plugin itself is working fine.
But I was wrong about that, it's also the plugin.

I doublechecked what I was using, and it was exactly the same as on the other servers, which did display all domains, so it looked as if it was working correctly.

It seems to be some other issue, but I don't know exactly what.
Also in the plugin not all domains which do have a certificate are showing.

This it says on top:
LetsEncrypt renewal days (DirectAdmin config): 60

And on the bottom:
Total LetsEncrypt domains: 10

But there are more. I discovered it when 1 user seems to have had some issues on his tablet with a hobby forum, regarding SSL. So I checked and the SSL certificate of that domain will be renewd in May. But the domain is not listed in the overview.

However, since there are more than 10 domains using LE on the server, something is off but I don't know what could be causing it since the servers are configured the same way.
 
Yes it's also on github.

No sorry, the one on github is not updated yet. Found 1 little thing in the SSH version.
 
Last edited:
Back
Top