Step 1: If you have been able to connect to the Internet before, PSN or the game server is temporarily unavailable. Please check the server status of the game through its website. You can check the status of the PSN here.
Step 2: If you have this error every time I try to go online, check the SSL in the Internet environment and verify that SSL is available.