Hi @idflorin
Just out of curiosity why don't you leave SSL out of the domain that is being redirected to the other? I mean, no one is going to actually "connect" there anyway, nor make traffic that needs to/should wtv be encrypted.
Where we have this situation, we simply have an .htaccess
file and the content is:
Redirect 301 / https://www.newdomain.com
So all customers get redirected to https. This would be my suggestion that would IMO definitely be simpler.