We are migrating web host and I wonder if it is possible in the migration phase to do a CNAME forward from
http://address2.com. Would the certificate still work even if the new domain doesn't have SSL yet?
A CNAME record does not "forward" anything, nor does it have anything to do with either HTTP or HTTPS protocols.
A CNAME record basically tells your nameserver that the record is an alias for another (A) record and it should lookup the value for that. For example:
example.com. IN CNAME example.net.
Would make your nameserver query
example.net A-record, which could be like:
example.net. IN A 127.0.0.1
If you want to redirect from one domain to another, with a different protocol, you will have to instruct either your webserver or the visitor's browser to redirect the request. There are some ways to do that.
(Apache only) Create an .htaccess file in your DocumentRoot with a rule like:
Redirect / http://example.net/
Place an index.html file in your DocumentRoot with a META refresh to the secondary domain:
<meta http-equiv="refresh" content="0;url=http://example.net/">
Do something similar, but with a scripting language like PHP, for example an index.php file with:
<?php header('Location: http://example.net/'); exit; ?>