• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question SSL certificate location for Prosody import

CavemanJoe

New Pleskian
Server operating system version
Ubuntu 20.04.6 LTS
Plesk version and microupdate number
Version 18.0.55 Update #1
Hey all, I'm trying to set up a Prosody XMPP server on my dedicated box running Plesk on Ubuntu 20.04, two weeks old.

I come from fifteen-odd years of either Webmin or manual configuration file fiddling, so I felt quite spoiled when I could just press a button and have Let's Encrypt sort my SSL certs out for me! My problem is that Prosody needs to know where my .cert and .key files are, and as far as I can tell from my auto-generated httpd.conf files, Plesk stores them both under heavily obfuscated names inside /opt/psa/var/certificates. Names like scfLlsL3A, for example, instead of example.com.key or example.com.cert.

This wouldn't be a massive problem, I could just tell Prosody hey go get those obfuscated files and use those, except that there are DIRE WARNINGS at the top of my Plesk-generated httpd.conf file saying DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY, which makes me wonder whether the next time Plesk updates my certificates, those obfuscated filenames will change and my Prosody server will break.

So, question, has anybody here set up Prosody on a machine running Plesk before? If so, how did you wrangle the certs? If not, am I good to just point Prosody at the two obfuscated files, or will they change, or are they maybe mirrored in a more convenient location somewhere else on the system? Or is there a configuration setting somewhere to tell Plesk to quit randomizing the SSL cert filenames?

Thanks!
 
I am afraid that running that stand-alone server along Plesk and letting it use configuration files that are controlled by Plesk will not work properly. If you find a Docker image for it, maybe you can run it inside Docker. But regarding SSL, Plesk does randomize the filenames, and the extensions will replace cert files with new randomized names occasionally upon renewals or other changes to the certificate.
 
Hey Peter, appreciate the reply. Is there a configuration option to prevent Plesk from randomizing these filenames?
 
Hey Peter, appreciate the reply. Is there a configuration option to prevent Plesk from randomizing these filenames?
There isn't. You best option to run Prosody on a Plesk server is trough Docker. Due to conflicting configuration needs for both Plesk and Prosody they don't go well together.
 
Last edited:
Found the originals, they're under
/usr/local/psa/var/modules/letsencrypt/etc/live/
and can be imported with a periodic call to
prosodyctl --root cert import /usr/local/psa/var/modules/letsencrypt/etc/live/

Is there a Plesk-Approved way to add the --deploy-hook argument to certbot, or am I stuck with cronning that a couple minutes after the renewal?
 
From Plesk Event Manager:

1695826622497.png
Not sure whether any of these are fired on an automatic renewal of a certificate. You'd need to test it.
 
Back
Top