0

I am developing my new project in symfony 2 in built-in Symfony2 sever (app/console server:run). Is it possible to run my website with https on this server?

latata
  • 1,703
  • 5
  • 27
  • 57

2 Answers2

8

now it is possible using the symfony cli, you can install a ssl certificate

symfony server:ca:install

https://symfony.com/blog/local-web-server-reloaded-for-symfony-apps

To install symfony client if you are on a Mac run:

curl -sS https://get.symfony.com/cli/installer | bash

Otherwise check this link for other OS: https://symfony.com/download

Community
  • 1
  • 1
1

The php app/console server:run use the PHP built-in web server that was designed to aid application development and isn't supposed to support SSL, just plain HTTP requests.

You can try to use this https://stackoverflow.com/a/12946566/3059764

Community
  • 1
  • 1
ferodss
  • 668
  • 3
  • 12