'How to install a custom certificate in Symfony server?

With server:ca:install on the Symfony console an SSL certificate can be generated and installed.

Is it possible / How to install an existing one, created separately (instead of the auto-generated one)?

Background: I need a certificate, that contains a specific IP as "alternative name".



Solution 1:[1]

symfony server:ca:install command creates and install certificates in user home directory (~) under .symfony5/certs folder you can replace generated certs with the existing ones here.

Note: Before replacing you can backup existing certs for later usage Or you can just regenerate new certs with the same command.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Chandan