Hi,
Finally i get it!!! the solution is:
1. The DNS Host Name legacy.domain.com pointing to Exchange 2007
2. The certificate with de name legacy.domain.com in Exchange 2007.
3. after all i needed set the correct Urls in the diferents virtual directories in Exchange 2007.
4. The certificate in Exchange 2013 is the same that i had in Exchange 2007 i imported it.
Now all its OK.
Thank you
Set-OwaVirtualDirectory -identity E2010_CAS_NAME\OWA (Default Web Site) internalUrl https://owa.new.com/owa ExternalUrl https://owa.new.com/owa -FormsAuthentication $True -BasicAuthentication
$True
Set-ECPVirtualDirectory -Identity E2010_CAS_NAME\ECP (Default Web Site) -InternalURL https://owa.new.com/ecp -ExternalURL https://owa.new.com/ecp -FormsAuthentication $True -BasicAuthentication
$True
Set-Webservicesvirtualdirectory -identity E2010_CAS_NAME\EWS (Default Web Site) -InternalURL https://owa.new.com/ews/exchange.asmx -externalUrl https://owa.new.com/ews/exchange.asmx -WindowsAuthentication
$True -BasicAuthentication $True
Set-Activesyncvirtualdirectory -identity E2010_CAS_NAME\Microsoft-server-activesync (Default Web Site) -InternalURL https://owa.new.com/Microsoft-server-activesync -externalUrl https://owa.new.com/Microsoft-server-activesync
-BasicAuthEnabled $True
Set-OABVirtualDirectory -Identity E2010_CAS_NAME\OAB (Default Web Site) -InternalURL https://owa.new.com/oab -ExternalURL https://owa.new.com/oab -WindowsAuthentication $True -BasicAuthentication
$True -RequireSSL $True
Set-ClientAccessServer -Identity E2010_CAS_NAME -AutoDiscoverServiceInternalUri https://owa.new.com/Autodiscover/Autodiscover.xml