Migrating database to a new EE4 Build breaks SSL?

Hi folks,

Just installed a new website with EE4. After installing EE4 I imported my wp-contents folder along with my database from my old website.

However, as soon as I import my database in, the website’s SSL breaks down leaving me unable to access the website at all. All I am doing is that I am simply changing the table prefix under the wp-config.php file and it after that, the site breaks saying

NET::ERR_CERT_COMMON_NAME_INVALID

I could mitigate the issue by simply renaming the table prefix to the default prefix and the site works… But I don’t get to have my content…

I’m pretty sure the database is breaking the site…

Any help?

THANKS