Skip to content
iD-SIGN
Contact us

Symfony, the Local Server and a Trusted SSL Certificate in Chrome

Set up a trusted certificate in Chrome for Symfony application development too

1 min readpublished 4/2022

When developing Symfony applications, it is very convenient to use the local Symfony server, which can also be set up for HTTPS very easily with the command:

bash
symfony server:ca:install

This command creates a local certificate authority and a local certificate signed by it, and registers the authority in the system. On macOS and Windows, that is enough for Chrome too, because it uses the system trust store. On Linux, Chrome and Firefox keep their own certificate database (NSS), and the command adds the authority there only if it finds the certutil tool. Just install it and run the command again:

bash
sudo apt install libnss3-tools
symfony server:ca:install

On Fedora, the package is called nss-tools. If you need to import the authority manually, it is in the Symfony CLI configuration: on Linux at ~/.config/symfony-cli/certs/rootCA.pem, or at ~/.symfony5/certs/rootCA.pem for installations created before Symfony CLI 5.17.

After restarting Chrome, your local Symfony applications should show a valid HTTPS certificate as well.

Tags Backend, PHP

Share LinkedIn Facebook

Need more than an article?

A few sentences about what you are dealing with are enough.