humanmade / altis-local-server

Local Server module for Altis
https://www.altis-dxp.com/resources/docs/local-server/
16 stars 4 forks source link

composer server ssl install CLI does not install the root certificate if mckert is already installed #566

Open tomjn opened 1 year ago

tomjn commented 1 year ago

The composer server ssl install command implies that it will install the SSL certificate:

    ssl install                   Installs and trusts Root Certificate Authority

But this does not always happen.

If mkcert is already installed no attempt is made to install a root certificate because the install command code calls return, so no attempt is made. This can lead to certificates being served that aren't accepted by the browser

tomjn commented 1 year ago

To get around this these undocumented steps were needed:

composer server ssl generate mysite.local
composer server ssl exec -- -install