miyagawa / Starman

Starman is a high-performance preforking Perl PSGI web server
http://search.cpan.org/dist/Starman
Other
287 stars 84 forks source link

Help withh SSL another case #116

Closed niconil closed 9 years ago

niconil commented 9 years ago

on a standalone Ubuntu server i follow the procedure described at https://serversforhackers.com/self-signed-ssl-certificates

i use the setup script generate-ssl.sh with SSL_DIR="/etc/ssl/private" commonName=localhost

ok, but when i try to launch starman starman --enable-ssl --ssl-key=/etc/ssl/private/myDancer.key --ssl-cert-file=/etc/ssl/private/myDancer.crt --listen localhost:5000:ssl bin/app.psgi

i've got the following output : 2015/09/14-16:00:55 Starman::Server (type Net::Server::PreFork) starting! pid(20736) Resolved [localhost]:5000 to [127.0.0.1]:5000, IPv4 Binding to SSL port 5000 on host 127.0.0.1 with IPv4 2015/09/14-16:00:55 Cannot connect to SSL port 5000 on 127.0.0.1 [Aucun fichier ou dossier de ce type] at line 109 in file /usr/local/share/perl/5.14.2/Net/Server/Proto/SSL.pm 2015/09/14-16:00:55 Received QUIT. Running a graceful shutdown 2015/09/14-16:00:55 Worker processes cleaned up 2015/09/14-16:00:55 Server closing!

niconil commented 9 years ago

sorry very sorry but there was a typo in my parameter it's --ssl-cert and not --ssl-cert-file

so starman --enable-ssl --ssl-key=/etc/ssl/private/myDancer.key --ssl-cert=/etc/ssl/private/myDancer.crt --listen localhost:5000:ssl bin/app.psgi works correctly

niconil commented 9 years ago

maybe a warning with a unknown parameter found in command line put me on the right way more easely