Commit Graph

5 Commits

Author SHA1 Message Date
OldGregg
78cf01c1fd Added SSL support to butterfly.
Added SSL certificate capability to butterfly. Butterfly now
has the --secure option, which requires the following files
to be present in the local folder:
  - butterfly.crt
  - butterfly.key
  - butterflyca.crt
This option forces butterfly to use HTTPS and secure
WebSockets. The connection still requires a username
and password.

There is also the --reallysecure option, which forces
the user's browser to provide a client side certificate.
The certificate is validated against butterflyca.crt, before
allowing the connection. Afterward, the commonName in the
certificate is used as the username for the connection.
The connection still requires the user to provide a password.

Also forced a default user "daemon" to be returned by the
User class, as it prevents someone from finding valid users
on the remote host.
2014-03-01 13:07:04 -05:00
Florian Mounier
14caa88d19 Bind to localhost by default 2014-02-28 11:21:47 +01:00
Florian Mounier
d4bbdec781 Refactoring + better inline html integration 2014-02-06 18:00:51 +01:00
Florian Mounier
466c48b53f Fix zombies again, add some log and a program name in execvpe 2014-01-31 10:14:32 +01:00
Florian Mounier
0a14b94b1a Fix INET6 sockets 2014-01-30 14:32:15 +01:00