SSL for panel problem

This was a issue with the installed openssl version:

OpenSSL 1.1.1 11 Sep 2018
Error message:
Using default temp DH parameters
139656848691648:error:02004061:system library:socket:unknown:…/crypto/bio/b_sock2.c:49:
139656848691648:error:2008C076:BIO routines:BIO_socket:unable to create socket:…/crypto/bio/b_sock2.c:50:
0 items in the session cache
0 client connects (SSL_connect())
0 client renegotiates (SSL_connect())
0 client connects that finished
0 server accepts (SSL_accept())
0 server renegotiates (SSL_accept())
0 server accepts that finished
0 session cache hits
0 session cache misses
0 session cache timeouts
0 callback cache hits
0 cache full overflows (128 allowed)

Was fixed running a apt update && apt upgrade, installed the version from sury repository:

OpenSSL 1.1.1c 28 May 2019

With the new version above, the check went trough properly:

Using default temp DH parameters
ACCEPT

So the issue is solved, also we’ve reworked the installer: Run apt upgrade after adding the repositories instead before. · hestiacp/hestiacp@3bcd42d · GitHub

1 Like

Next question about ssl,
how to use cloudflare ssl with hestiacp?
Cloudflare - protect leaking server ip but when i’m added domain to cloudflare & vestacp it’s working, but when forced ssl on cloudflare side not:

 Success!
Your new web server is ready to use.

its showing server default page not user page

Hi daffyy,

I can assist you on this matter, however I will need access to review your Cloudflare settings. Is that possible?

1 Like

Nvm my bad, full SSL option on cf req. own SSL cert on server, changed to flexible and its ok

1 Like

Hello I would like to understand if the le cert ist thought for the panel url itself most it will be some subdomain srv.domain.tld
As it can be done on vestacp
Or is it only for the hosted domains and we have to buy some ssl for the panel itself?
Best regards Markus

Hi Markus

Thanks for your request. Please check the v-add-letsencrypt-host command, it will automatically add a valid let’s encrypt ssl certificate for hestia backend.

Thank you for the ultra fast Sunday reply…
Nice hint I will report when I’m at home.

Update:
i cannot believe that it is so easy. great work what you did here. Thank you for that.
It worked, simply enter

v-add-letsencrypt-host

then the letsencrypt cert is used for panel no need to buy some cert elsewhere.

i use ubuntu 18.04 and first time i installed this HestiaCP i encountered the problem with Publickey due to missing gnugp2 package solvable easily with
sudo apt install gnupg2

i have another little problem i think i will open new thread so that others can perhaps benefit from my very good first experience with your software.
Best regards Markus

1 Like

Hi Markus

Thanks for the hint with gnupg2, I’ve added it to the installer.

1 Like

i reinstalled recently
in v 1.0.5 the gnupg2 is still not included
i have seen you discussed with some guys about that include

what is the result of that?

The change was in master branch, not release. It will be released with 1.1.0.

ok , i have second installation with hestia panel
i upgraded to branch master successfully and now have 1.1.0
by the way the user is quite big in my installation

the question is
that the upgrade was successful but
i do have old config

i found a migration script

but i do not know how to execute it… or is it neccessary?

UPDATE: I better should have opened a new topic?
when you want then delete after reply

A upgrade to 1.1.0 is not a good idea for productive servers. You should just be able to execute the script for the migration.

v-add-letsencrypt-host: command not found

You have to either export $PATH or issue “sudo su -” command prior the v-add-letsencrypt-host.

1 Like

thank you very much @martineliascz

Hi folks, just as an FYI, I have just installed Hestiacp (ex-vestacp user) and found that the Portal SSL was not encrypted which I thought was odd. I would hope the next release by default, has this enabled.

I was using Debain 10.5 and HestiaCP v1.2.3

I used the above command as root via SSH and it resolved the issue. Since it uses Lets Encrypt, will it automatically update at the end of the 90 days based on the primary site hostname?

Its planed to implement it on fresh installs and yes, it will be renewed automatically.

2 Likes

it worked for me.

Your problem lies in the traffic between Cloudflare and your site. CF has 4 SSL/TLS operation modes. If it is set to OFF or Flexible, CF sends Http requests to the site and when the certificate is connected, a permanent 301 redirect occurs on the site from both sides. If it is set to Full, then the traffic goes only to Https.