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

SSL using legit (non-self signed) certificate. #415

Closed
hollowbit opened this issue Nov 23, 2016 · 5 comments
Closed

SSL using legit (non-self signed) certificate. #415

hollowbit opened this issue Nov 23, 2016 · 5 comments

Comments

@hollowbit
Copy link

I tried to create a server hosted on the same server as my website with https on it. (https://hollowbit.net/vedi0boy/). You can see https works, but when I try using it for websockets, it doesn't. Is there a way to do it or is it simply not implemented yet.

When using applications made with gwt (java converted to javascript) for example, it doesn't allow you to connect to self-signed certificate servers for security reasons. Also, it looks a lot more legit if I don't use them.

Thanks!

@marci4 marci4 self-assigned this Mar 15, 2017
@marci4
Copy link
Collaborator

marci4 commented Mar 15, 2017

Hello @vedi0boy,

I should be able to provide an example for you to use a certificate (Let's encrypt) for the server.

Gonna add a documentation.

Greetings
marci4

@bendem
Copy link
Contributor

bendem commented Mar 17, 2017

Here is the code I used to generate a keystore from a regular certificate; and here is an example usage.

The code is pretty old, I ended up not using Java-WebSocket because the code is old and full of weird quircks. But the idea is there.

@marci4 marci4 added this to the Complete Documentation milestone Mar 19, 2017
@marci4
Copy link
Collaborator

marci4 commented Mar 20, 2017

Hello @vedi0boy,

please check out my wiki post with some examples here.

Greetings
marci4

@marci4 marci4 closed this as completed Mar 20, 2017
@hollowbit
Copy link
Author

Awesome! I will try it when I get the chance. Does this only work with Let's Encrypt? I use it but I'm just curious for people using other CAs.

@marci4
Copy link
Collaborator

marci4 commented Mar 20, 2017

Hello @vedi0boy,

well I use it with a Let's Encrypt certificate.

Some certificiates may not use "pem" files so it will be likely that you have to use a keystore.
And some certficiates may have a different format so you may wanna adjust this to (when you load the certificate directly from the file)

Greetings
marci4

@marci4 marci4 reopened this Mar 20, 2017
@marci4 marci4 closed this as completed Mar 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants