anodejs / node-ssltunnel Goto Github PK
View Code? Open in Web Editor NEWSSL tunnel for node
License: MIT License
SSL tunnel for node
License: MIT License
OpenSSL 1.0.1+ ships with Next Protocol Negotiation (NPN) support, which is required for SPDY protocol negotiation.
node-spdy supports this already, but it would be great to have this support baked right into node-ssltunnel and then deliver the frames over a regular TCP stream.
Using client mode with log level. I am able to get it listening on a port and says it will forward request and most likely i have a cert issue but I can't tell because it reports this back:
Error communicating with the server. Error: {}
connection to server was closed
I need more info if possible
hi.
node run_ssltunnel.js --role client --proxy_port 54080 --server_port 64443 --server_host my-vps-ip --srv_pub_cert ~/node_modules/ssltunnel/gen-certs/server-public.pem --clt_pub_cert ~/node_modules/ssltunnel/gen-certs/client-public.pem --clt_prv_cert ~/node_modules/ssltunnel/gen-certs/client-private.pem
Running 'client' role. Listening on 54080, encrypting and forwarding to ssltunnel's server on my-vps-ip:64443
ssltunnel's client is listening on port: 54080
Connected to the real BE server
/Users/brite/node_modules/ssltunnel/lib/ssltunnel.js:141
log.info('Error communicating with the server. Error: ' + JSON.stringify(exception));
^
TypeError: Converting circular structure to JSON
--> starting at object with constructor 'Object'
--- property 'issuerCertificate' closes the circle
at JSON.stringify ()
at TLSSocket. (/Users/brite/node_modules/ssltunnel/lib/ssltunnel.js:141:70)
at TLSSocket.emit (events.js:208:15)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at processTicksAndRejections (internal/process/task_queues.js:77:11)
how to fix it?
tls.js:96
throw new Error('CryptoStream is not writable');
^
Error: CryptoStream is not writable
at CleartextStream.write (tls.js:96:11)
at Socket. (C:\Users\dimast.MIDDLEEAST\node_modules\ssltunnel\lib\ssltunnel.js:82:27)
at Socket.emit (events.js:67:17)
at TCP.onread (net.js:347:14)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.