Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot login with ssl cert #49

Closed
friparia opened this issue Jun 15, 2014 · 4 comments
Closed

cannot login with ssl cert #49

friparia opened this issue Jun 15, 2014 · 4 comments

Comments

@friparia
Copy link

i follow the instructions on your blog, but on the step Importing the user client authentication file, i download the foo.p12 on my windows and import it into my chrome, but when i run the server the chrome shows "The server must be run as root if you want to log as different user ", and the server shows:

[E 140615 07:05:25 websocket:319] Uncaught exception in /ws/
    Traceback (most recent call last):
      File "/usr/lib64/python2.6/site-packages/tornado/websocket.py", line 316, in wrapper
        return callback(*args, **kwargs)
      File "/usr/lib/python2.6/site-packages/butterfly/routes.py", line 295, in on_message
        fcntl.ioctl(self.fd, termios.TIOCSWINSZ, s)
    IOError: [Errno 9] Bad file descriptor
@paradoxxxzero
Copy link
Owner

Very sorry for the late response, did you put your linux user name in the command : butterfly.server.py --generate-user-pkcs=<username> (the same as the one you lauch the server with) ?

@friparia
Copy link
Author

I run the command as root, and here is my commands:

# butterfly.server.py --generate-certs --host="example.com"
# butterfly.server.py --generate-user-pkcs=root
# butterfly.server.py --host="example.com"

and i download the root.p12 file and import it as a personal certification.
Is that i should create a extra user (not root) to log in the server in ssl?

@paradoxxxzero
Copy link
Owner

No sorry you have to generate the pkcs for your regular user if you run the server as root.

@friparia
Copy link
Author

ok, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants