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 Error #25

Open
spudalicious opened this issue May 11, 2019 · 3 comments
Open

SSL Error #25

spudalicious opened this issue May 11, 2019 · 3 comments

Comments

@spudalicious
Copy link

spudalicious commented May 11, 2019

I'm really looking forward to using this, however, I am running into one issue. I have installed SSHy by git into the folder I wish to start from nerd.mydomain.com I installed wsproxy using sudo (only way it seems to work for my on my install of ubuntu)

git submodule update --init --recursive
sudo npm i -g wsproxy/
sudo wsproxy

I run the command
sudo wsproxy -s -k /etc/letsencrypt/live/mydomain.com-0001/privkey.pem -c /etc/letsencrypt/live/mydomain.com-0001/privkey.pem

I get the following error in the terminal

      c.context.setCert(cert);
                ^

Error: error:0906D06C:PEM routines:PEM_read_bio:no start line
    at Object.createSecureContext (_tls_common.js:113:17)
    at Server (_tls_wrap.js:870:27)
    at new Server (https.js:62:14)
    at Object.createServer (https.js:85:10)
    at new Init (/var/www/html/nerd/wsproxy/src/server.js:28:23)
    at Init (/var/www/html/nerd/wsproxy/src/main.js:29:15)
    at Object.<anonymous> (/var/www/html/nerd/wsproxy/index.js:37:1)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)

I sincerely appreciate any assistance. Cheers!

@stuicey
Copy link
Owner

stuicey commented May 11, 2019

Might be a copy paste mistake while making this ticket but looks like you're trying to use a private key as a certificate? If you were this error makes sense as the files have different structures.

sudo wsproxy -s -k /etc/letsencrypt/live/mydomain.com-0001/privkey.pem -c /etc/letsencrypt/live/mydomain.com-0001/privkey.pem

Could you make sure you're using a certificate chain for the -c argument?

@spudalicious
Copy link
Author

Thank you so much for a quick response. yep, I was an idiot. Using fullchain.pem, wsproxy starts with no erorrs but, still not loading at nerd.mydomain.com I get this error in chrome console:

(index):223 WebSocket connection to 'wss://localhost:6001/mydomain.com:22' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

SSH server is running and can be accessed with Putty. I'm certain that I am yet again missing something painfully obvious. thanks so much for your help.

@stuicey
Copy link
Owner

stuicey commented May 21, 2019

Apologies missed this notification...

Whats the output you get in the wsproxy window when the connection fails? I'd guess its a certificate related issue, either something with the chain or the browser wanting it to be issued to the same domain?

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