Getting "Invalid ssl directory. Unable to continue."

marcusahle

Member
Apr 22, 2011
8
0
51
I migrated from one server with cPanel/WHM to another server with cPanel/WHM. Everything migrated over fine, but it looks like some of the sites don't have SSL enabled on the new server, even though the did on the other. I went to "Activate SSL on your webhost" and I select my domain and it brings up the crt and key automatically then I hit the Install Certificate button and it gives me an error saying: "Invalid ssl directory. Unable to continue."

Any idea what is causing this? Any help would be greatly appreciated!
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Can you check on the old machine's httpd.conf what it has listed for the SSL directory? The normal directory location is /etc/ssl/ for the location, but older machines might have used /usr/share/ssl instead of /etc/ssl and this might be the issue. If your machine was using /usr/share/ssl on the old server, I suggest copying all of the certs to /etc/ssl location into the /etc/ssl/certs and /etc/ssl/private directories, then re-attempting to install the certificates.
 

marcusahle

Member
Apr 22, 2011
8
0
51
On the old server the certs are in /usr/share/ssl but on the new server they are already in /etc/ssl but it's still getting the same error.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Please try creating /usr/share/ssl instead and copying all the certs in /etc/ssl there instead then. It's possible some template is hard coding the old SSL locations due to the prior httpd.conf entries on the old machine.

Code:
mkdir -p /usr/share/ssl
cp -R /etc/ssl/* /usr/share/ssl/
 

marcusahle

Member
Apr 22, 2011
8
0
51
That didn't work either. Getting the same error.


The SSL Root /home/account/ssl/request-wQuDskgOJEEvmDuj is not a directory! Invalid ssl directory. Unable to continue.
Invalid ssl directory. Unable to continue.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Is that a new error it is returning now about /home/account/ssl/request-wQuDskgOJEEvmDuj location? That wasn't previously noted for the error message, so just confirming.

At this point in time, if you could submit a ticket using WHM > Support Center > Contact cPanel or using the link in my signature, that would be the best course of action. If you could also post the ticket number here upon opening one.

Thanks.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
No. It is the same error message.
If possible going forward, please provide the full error message initially. Previously, the full error was never provided other than "Invalid ssl directory. Unable to continue."

Thanks for providing the ticket ID number!
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Per the ticket, it appears you were trying to install the SSLs via cPanel rather than using WHM? If that is the case, please try using WHM rather than cPanel to install any SSLs that didn't properly transfer.

Additionally, if the sites aren't given a dedicated IP when being transferred, the SSLs will not copy over as installed. They will copy but they won't install as they won't have a dedicated IP to utilize.