sinnbeck / laravel-served

Docker version of artisan serve (with alot more)
MIT License
74 stars 13 forks source link

Https for web #9

Closed sinnbeck closed 4 years ago

sinnbeck commented 4 years ago

I am trying to find some clever way to have the web service work with https. Both nginx and apache2

sinnbeck commented 4 years ago

Now works on apache. But I cannot get chrome to accept the cert in any way :(

@iammikek Any experience with self-signed certs?

sinnbeck commented 4 years ago

image

sinnbeck commented 4 years ago

Works! Just import the certificate in chrome and you have a working https site :)

sinnbeck commented 4 years ago

openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes \                                                                                             
  -keyout localhost.key -out localhost.crt -subj "/CN=localhost" \
  -addext "subjectAltName=DNS:localhost,IP:127.0.0.1"