There are a few things that go wrong.
- SSL certificate is deleted even though it's perfectly valid still (since the original cert was also for example.com and www.example.com just in reverse order)
- The
ssl-redirect.confis not modified to remove references to the now deleted certificate include /etc/nginx/ssl/casacherda.nl;is kept in the vhost config which also references the deleted certificatessl-redirect.confis incorrectly modifed to redirect.example.comand.www.example.comfor https redirectssl-redirect.confis incorrectly modified to redirect.example.comtoexample.com(need to test this again to see what exactly happens)
End result is broken nginx configuration and broken website. Some side-effects are mentioned (removing the SSL certificate) but other (leaving a broken nginx configuration still referencing those certs) are not and I would also expect the ssl-redirect.conf to be left in a correct state redirecting the correct domains as if it was created using www.example.com.
After some manual intervention and cleanup it can be made working again obviously but I would like to have Ploi do it right in the first place :D