Bolt+s protocol not working but bolt+ssc working

Transaction failed and will be retried in 7.236173011112719s (Couldn't connect to {domain}:7687 (resolved to ('{ip_address}:7687',)):

This error occurs when I use bolt+s:// to connect to an endpoint. I am generating SSL certificates through certbot which gives me valid trusted letsencrypt certificates. I don't know why it doesn't work but I don't want to use bolt+ssc:// as well in production (currently working) . Also in neo4j.conf file tls_level is set to REQUIRED and client_auth to NONE

In browser mode everything works (the :7473 certificate is valid) and after that bolt+s:// and neo4j+s:// both work.