After moving Box: The certificate does not correspond to the private key at /home/user-data/ssl/ssl_private_key.pem

Hi

i get this message “The certificate does not correspond to the private key at /home/user-data/ssl/ssl_private_key.pem.” after moving my box from one server to another VPS.

I restored data like discribed here https://mailinabox.email/maintenance.html#moving-boxes

Can anyone tell me what to do?

Maybe not the BEST fix, but the simplest fix is to remove the contents of the ssl directory /home/user-data/ssl - NOT THE DIRECTORY ITSELF - just the contents and then run ~/mailinabox/management/ssl_certificates.py

Be sure to make a backup somewhere of what you are removing before you actually remove it.