I've got domain1.com on cloudflare with SSL enabled and domain2.com is the main nginx server hosted on AWS with a valid SSL certificate all setup ok - (I can access https://domain2.com with no security warning)
I've setup forwarding on cloudflare so domain1 will do a 301 redirect to https://domain2.com
This is fine if I access domain1 over HTTP,
But when I access https://domain1.com - I get the Security warning.