Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upGet certificate for Plesk domain #11
Comments
This comment has been minimized.
This comment has been minimized.
What do you mean the "main" domain in Plesk? I like all my domains :) |
This comment has been minimized.
This comment has been minimized.
Yes, sorry, I mean Plesk port 8443 - I've dedicated a single (sub-)domain for Plesk with "Custom Plesk Hostname" extension so I have one "main" Plesk domain. Downloading and uploading would work fine, I agree, but this step would have to be repeated at least every 90 days. It would be nice to be able to set one of the domain certificates as default Plesk certificate. Unfortunately plesk does not provide a GUI option to set a certificate for mail services. Manually updating certs everywhere might be acceptable for 1/2 year certificates - but every ~80 days is a bit too much. |
This comment has been minimized.
This comment has been minimized.
The active certificates could be found here: /usr/local/psa/var/modules/letsencrypt/etc/live/domain.tld I will think about automated renewal of Plesk certificate. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This would be very handy indeed! Would love to see this happen :-) |
This comment has been minimized.
This comment has been minimized.
+1 |
This comment has been minimized.
This comment has been minimized.
+1 |
This comment has been minimized.
This comment has been minimized.
+1 |
This comment has been minimized.
This comment has been minimized.
The extension version 1.2 has been released. |
This comment has been minimized.
This comment has been minimized.
Could you add some information on how to secure the panel? |
This comment has been minimized.
This comment has been minimized.
I believe this is done by running: sudo -u psaadm bash /usr/local/psa/admin/plib/modules/letsencrypt/scripts/le-run --letsencrypt-plesk:plesk-secure-panel Then select the domain that is being used for the Plesk control panel (Presuming that you are using default port) - Or at least appears to work for me! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@xgin Awesome, thanks! |
This comment has been minimized.
This comment has been minimized.
Does this also work when running plesk on a subdomain like |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@xgin thanks, that helps... looking forward to those implementations... |
This comment has been minimized.
This comment has been minimized.
@xgin Hm. There is no option 'Use this certificate to secure connections to Plesk' on my installation. I'm using plugin version 1.2 on Plesk 12.5 |
This comment has been minimized.
This comment has been minimized.
@donmike73 I have the Same Problem, think we must update our Plugin. :) |
This comment has been minimized.
This comment has been minimized.
I think this only available for new certificates and not when you try to update an existing, right? |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
It is not clear for me why did you come to the decision about new domains. There are only 2 conditions for Plesk certificate: admin user (and its aliases) is allowed and the domain should match currently opened Plesk address. |
This comment has been minimized.
This comment has been minimized.
I'm not really getting how this works. I have a working, really expensive, ssl cert on How would I proceed in securing this so plesk can run on Kind regards, |
This comment has been minimized.
This comment has been minimized.
I'm confused, why I don't have option "Use this certificate to secure connections to plesk" like in picture? |
This comment has been minimized.
This comment has been minimized.
@Caroga the domains name should be registered in Plesk, elsewise you should install and renew it by yourself: an example is here https://gist.github.com/xgin/fbfa4577ad46955f472c |
This comment has been minimized.
This comment has been minimized.
@TeHashX take a screenshot with all the elements highlighted above (essentially with browser address bar) |
This comment has been minimized.
This comment has been minimized.
Solved |
This comment has been minimized.
This comment has been minimized.
@TeHashX I see, will fix the case. |
This comment has been minimized.
This comment has been minimized.
@xgin Hi, I have the domain name registered in Plesk, it's already in use. But the situation is as follows:
I wish to create a SSL cert for plesk.domain.tld, but I cannot select this inside the Let's Encrypt plugin. Kind regards, |
This comment has been minimized.
This comment has been minimized.
@Caroga create a subdomain - it is the simplest solution |
This comment has been minimized.
This comment has been minimized.
Okay, will do so. |
This comment has been minimized.
This comment has been minimized.
I guess you need no proxy. Just try it :) |
This comment has been minimized.
This comment has been minimized.
Okay I got it to generate a ssl cert for |
This comment has been minimized.
This comment has been minimized.
Nevermind, already fixed. Thanks again! |
This comment has been minimized.
This comment has been minimized.
Hi @xgin, Thank you in advance! |
This comment has been minimized.
This comment has been minimized.
You can use my script for automated updates of the cert for mailservers on debian systems! |
This comment has been minimized.
This comment has been minimized.
@Bambi42 take a look https://github.com/plesk/letsencrypt-plesk/wiki/Secure-Mail-Server |
This comment has been minimized.
This comment has been minimized.
@xgin thumps up |
This comment has been minimized.
This comment has been minimized.
What I do not understand: why are the mail server security settings not automatically applied, when running the plesk sbin pci_compliance_resolver? Regards.... |
This comment has been minimized.
This comment has been minimized.
@trialotto |
This comment has been minimized.
This comment has been minimized.
NOT WORKING `Error: Let's Encrypt SSL certificate installation failed: Failed letsencrypt execution: Failed authorization procedure. www.ZZZZZ.kraftysprouts.com (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: DNS problem: NXDOMAIN looking up A for www.zzzzzzz.kraftysprouts.com
Domain: www.ZZZZZZ.kraftysprouts.com To fix these errors, please make sure that your domain name was
|
This comment has been minimized.
This comment has been minimized.
Thanks for this @xgin! Especially this comment. That worked fine for the admin interface on port 8443 having a
|
This comment has been minimized.
This comment has been minimized.
The option to protect the panel does not appear for me: What am I doing wrong? I using: |
This comment has been minimized.
This comment has been minimized.
@ArashiKorosu In onyx we suggest another way to secure Plesk: https://docs.plesk.com/en-US/onyx/administrator-guide/plesk-administration/securing-plesk/securing-plesk-and-mail-server.76576/ |
This comment has been minimized.
This comment has been minimized.
Using Plesk Onyx Version 17.5.3 Update #9 on https://domain.tld:8443 but the option in the screenshot from xgin is not present. Only the option to include www. and secure webmail, too. Do I need anything else, so the option appears ? |
This comment has been minimized.
This comment has been minimized.
There are many current issues that are interrelated and/or can be interrelated with other issues or even the bugs in other extensions/components of Plesk. Please note that the current issue in this thread can be related to migration issues. It would be good to consider that, in almost all cases of migration, the Plesk Let´s Encrypt extension can or will result in many errors. The most common error (in case of migration) is the fact that certificates (of a domain or the server) are NOT migrated (read: Plesk settings are not migrated fully). This will hinder the proper functioning of the Plesk Let´s Encrypt extension. I certainly hope that one can pay some attention to that too. In addition, there are two absolutely required functions for the Plesk Let´s Encrypt extension:
I am aware that point 2 is rather difficult, but point 1 is a feature that can be developed shortly. The "revoke function" would certainly reduce a number of issues, in the sense that potential issues can be resolved by simply revoking a certificate and re-assigning the certificate. Hope the above feedback will help a bit. Regards..... |
This comment has been minimized.
This comment has been minimized.
@heinrich-k have you seen the latest comment related to the Onyx version? @trialotto I don't think mixing different problems in the another (closed by the way) issue is something perspective. |
This comment has been minimized.
This comment has been minimized.
@xgin: I had not seen it. But it isn't a tutorial to use the Let's encrypt certificate either. I want to move away from self signed certificates. |
This comment has been minimized.
This comment has been minimized.
I just wanted to point out that there are many "cause > consequence" combinations of LE related issues. This often causes discussions about solutions for specific LE related issues to be scrambled with noise. For instance, consider the "revoke issue" (and #105). The status quo is
and the whole problem is that new issues often arise when trying to solve another one. Simply because Plesk Panel, letsencrypt binary and CLI interface are not aligned. In my humble opinion, it would be a good starting point to a) create crystal clear (online) documentation (as you suggested yourself previously), b) create a description of all possible CLI interface commands, this in order to keep discussions about alleged (!) issues with the LE extension pure. Regards...... |
This comment has been minimized.
This comment has been minimized.
You can always create a domain with the identical name of your server´s FQDN. This will result in the following: a) when assigning a letsencrypt certificate to the domain in question, the Let´s Encrypt extension will be automatically asking whether you want to secure Plesk Panel (with the LE certificate) Note: simply follow the steps 1 - create a domain or subdomain with name [server FQDN] and that is it. Note the steps 1 and 2 (and potentially 3) are a "dirty work-around" for securing Plesk Panel, it is not a solution, but it is a "required work-around": the interaction between the Let´s Encrypt extension and the Security Advisor extension can cause some problems, requiring this "work-around". b) the created (sub- or) domain with name [server FQDN] will allow you to create common mailboxes like hostmaster@[server FQDN], with the particular advantages that
and even a mailbox like root@[server FQDN] can be used, as long as you use a mail forward (highly recommended!!). In general, note that letsencrypt certification does not secure all SSL/TLS connections! And this is also an important topic for (online) documentation with respect to the Let´s Encrypt extension. |
This comment has been minimized.
This comment has been minimized.
Please (also) see my comment to @heinrich-k. I suggest that we further use the Plesk forum to communicate, if desired by you. Regards! |
This comment has been minimized.
This comment has been minimized.
@trialotto |
This comment has been minimized.
This comment has been minimized.
I know, that is different amongst a number of Plesk versions and even amongst LE extension versions. The step 3 is optional, it is not required. Essentially, by creating and securing the domain or subdomain with name [server FQDN], one can access the Plesk Panel by using that specific (sub-)domain name and still have the green lock in the browser. However, this still allows you to access the Plesk Panel with another URL that has a DNS record pointing to the IP of the server in question .......... and this URL is not secured (only with the default certificate). One way to get LE certificate on the (sub-)domain with name [server FQDN] working for all URLs is simply by using a (Nginx based) redirect OR changing the Plesk (Nginx) config (read: adjust the lines pointing to the default certificate and let them point to the directory and file location of the LE certificates that are active on the (sub-)domain with name [server FQDN]). Again, it is a work-around, not a solution. Another way to get your system "clean" is to remove and re-install both the Security Advisor extension and the Let´s Encrypt extension: these two extensions can be the cause of Let´s Encrypt related issues. Again, both the before mentioned extensions can interfere with each other and cause severe issues. The best way to get your system "clean" is to follow the steps 1 to 6, as mentioned here: https://talk.plesk.com/threads/solutions-for-recent-lets-encrypt-issues.342567/ In most cases, a good "clean" will allow you to get your server-side LE certificate up and running. Hope this helps! Regards...... |
Is it possible to use this extension to get a certificate for the Plesk main domain?
Also being able to install these certificates for Mail, FTP and Webmail... would be very useful.