OK I have managed to fix this but not with the links above as I still ended up with the problem of still not having a ca.csr file to gererate the cert.
However as thank for your help and hopefully to possibly help others in the same situation here’s what I did to fix it…..
What you need
The install files for the version of zimbra you are currently using and is broken.
What to do
1)Move the broken /opt/zimbra directory to another location and rename, I move it to my home directory and renamed it zimbraold
2)Install a clean copy of the version you are using i.e. it will recreate the /opt/zimbra directory. This is not an upgrade and when it asks about deleting mail click yes, as your mail should be safely tucked away in the zimbraold directory.
3)Once installed stop zimbra (zmcontrol stop, as zimbra user) rename /opt/zimbra to /opt/zimbranew
4)Copy the zimbraold directory from the location you put it, in to /opt/zimbra again. So you now have /opt/zimbra which is your old broken install (including your settings and mail etc) and /opt/zimbranew which is the clean fresh install.
5)Copy /opt/zimbranew/ssl to /opt/zimbra/ssl
6)Copy the 2 zmssl. named files in /opt/zimbranew/conf to /opt/zimbra/conf
7)Then reinstall zimbra again but this time when it asks about upgrading type yes… If you do not do this it will delete your mail and you would have to start from point 4 above again by recopying your zimbraold data again.
8)Once the installation is complete, stop zimbra (zmcontrol stop, as zimbra user)
9)Then go to this wiki page
SSL Certificate Problems - Zimbra :: Wiki find the “create the CA certification (as zimbra)" section and complete all the commands relevant to your version from this section to the bottom of the page.
10)Then restart zimbra (zmcontrol start, as zimbra user)
11)Check that all services have started (zmcontrol status, as zimbra user), the services depending on the speed of your system may take a few minutes to start so keep repeating this command and you should see more and more showing as running. To give you an idea I have a 1 Ghz ITX box with 1 gig of ram and it normally takes around 3 minutes for all services to start.
12)Once all services have started you should now have a working admin page and if you have zmtldclt set to either both or https you should also have working https webmail.
Disclaimer – this is what I did and it worked for me on a Ubuntu 7.10 server with OSS version 5.0.1 Zimbra, but you use this at your own risk!!!!
As a foot note to this I have now increased my backup regime I have a “day one” backup as it was when I got it going last night and I am now doing daily backups so hopefully should anything like this happen again in the future I would have a proper backup to restore from which should be much quicker than the above to complete. Details about backup and restore are shown in various posts on the forum.
I hope that this may help or at least point someone in the right direction, should they have a similar issue to me.