Cloning the website and redeploying results in 500 internal server error

so i found out what was wrong, if you go to config->jwt
there is two files
private.pem
public.pem
they need to have the permission 600 or 660