Page 1 of 1

Error ssl after i have just chosen the php version

Posted: Tue Apr 19, 2022 3:18 pm
by devifr92
Dir sir/madam!

I have a domain that's in sharing server (I call that domain is mydomain).

Its PHP version's 5.6;

Its centos 7 with vestacp | httpd | nginx;
  • Before I have installed ssl for mydomain successfully. mydomain run ok with ssl; I did it with some command line like: cd /home/myaccount/conf/web/ usr/local/vesta/bin/v-add-letsencrypt-domain 'myaccount' mydomain.com '' 'yes'

    Now, I have just installed PHP Selector on that server And I go to Vestacp Panel with myaccount that's used to manage for mydomain. So I go to menu Web => Edit mydomain => And I choose sk-php74 => Save
=> After that, mydomain has an error with ssl. it shows the error "Your connection is not private" or "Your connection to this site isn't secure"; I have checked it so I see it's using ssl certificate of another domain that's on the same server.
I go to my server with ssh;
I go to "/usr/local/vesta/ssl/" folder;
I have just done with some command lines:

Code: Select all

mv certificate.crt_old certificate.crt
mv certificate.key_old certificate.key

cp /home/myacount/conf/web/ssl.mydomain.com.crt /usr/local/vesta/ssl/certificate.crt
cp /home/myacount/conf/web/ssl.mydomain.com.key /usr/local/vesta/ssl/certificate.key

service httpd restart
service nginx restart
service vesta restart
but the above error still exists.

So How can I fix that error?

Re: Error ssl after i have just chosen the php version

Posted: Wed Apr 20, 2022 12:40 pm
by sandro
This error is because the domain is using a wrong certificate or a certificate from another domain.

You need to verify that the SSL certificate is configured in the "mydomain.httpd.ssl.conf" file inside the /home/myaccount/conf/web directory.