• 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!
  • 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.

Problem with SSL certificate on exclusive ip address (and workaround)

W

WillemK

Guest
I have the following setup

OpenVZ vps with 2 2 adressess
clean centos 5.5 64 bit install, no httpd, no mysql and no php, just YUM and sshd
yum upgrade lists no packages for upgrade.

I then install plesk and all it's dependencies with

wget http://download1.parallels.com/Ples...ller_v3.7.1_build101015.08_os_CentOS_5_x86_64
chmod 700 parallels_installer_v3.7.1_build101015.08_os_CentOS_5_x86_64
./parallels_installer_v3.7.1_build101015.08_os_CentOS_5_x86_64


I install 10.0.1, all default options (though i reproduced it with minimum options as well, ie. no business manager)

I setup the main ip address as exclusive, and the second one as shared.
I add one wildcard ssl certificate (*.domain.com) to the admin repository. I use it to secure the control panel, and make it the default certificate for the exclusive ip. It works as it should for the control panel at this point.

I then add a subscription for the the same domain I want protected. I make sure ssl is enabled, and in global webhosting settings for the subscription it gives the correct certificate name. I also verified the domain definitely is hosted on the right (exclusive) ip address.

so i now have

https://domain.com:8443 which works as it should, ssl and everything.
however https://domain.com/ (or every other subdomain) returns a completely different certificate.
It's not the certificate I created, and not the automatically generated self signed plesk certificate.

After some digging, it seems to return the certificate configured in /etc/httpd/conf.d/ssl.conf

<VirtualHost _default_:443>
SSLCertificateFile /etc/pki/tls/certs/localhost.crt

Any domains I create on the shared ip address (which still has the default certificate as default certificate) correctly return the default plesk certificate.

As far as I can see, everything is configured as it should in plesk.
The file /var/www/vhosts/domain.com/conf/vhost.conf seems to have the correct ssl certificate specified (it points to /usr/local/psa/var/certificates, and i verified with 'openssl x509 -text -in certname' that it was mine)
Am i just overlooking something, or is this a bug?

If I change the exclusive ip address to a shared ip-address, everything works correctly, so that leads me to believe that the configuration is right, and this is bug. Fortunately that is also the workaround, though it took me quite some fiddling to find that out.

Hope this helps someone

Willem
 
Back
Top