Thanks this is very detailed.
The same exact thing happened to me, When renamed the SSl certficate folder and continued with the deployment, it failed while upgrading the database. I will try the above approach and will let you know, A Quick question. Was it required for you to reconnect the hosts after the deployment? I read somewhere the password used to connect to the host is encrypted in the SSl certificate.