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

TLS/SSL example on existing site #92

Open
DevinBayly opened this issue Feb 14, 2019 · 1 comment
Open

TLS/SSL example on existing site #92

DevinBayly opened this issue Feb 14, 2019 · 1 comment

Comments

@DevinBayly
Copy link

Hello there, I'm trying to use this library to communicate with a secure websocket inside of a webextension. The confusion I have is in the example the cert.pem and key.pem are self signed, but I don't know how to get these two files for an existing page. Without these it doesn't seem like the browser js wss websocket can find the socket created with this library. Is there a straightforward approach to handle this situation?

@uzlonewolf
Copy link

They are just the standard SSL/TLS certificate and key. If your webserver already has a set then you can just use those, otherwise you'll need to look into getting a set.

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