Unable to copy api.keys.php

I’m moving sites to another server, so i copied all the files and transferred them to the new server. Now everything is working except the api_keys. They are not transferred making the frontend unable to connect to the cockpit api.

How do i solve this? I cannot change the frontend.

Nobody can answer this question?

It should work… Did you transfer the file /storage/api.keys.php, too?

Sorry, I didn’t read the title correctly. It answers my last question, if you copied the file.

Did you change sec_key in your config, which is used to encrypt the file api.keys.php?

If you used a version later than 2019-06-23, you could omit the file. The api keys are now stored in the database as well.