I came across this thread Node.js HTTPS Secure Error which mentions that the tls module is the way to do TLS on node now. It seems that setSecure() has been dropped. I'm trying to do a STARTTLS for XMPP. This means that the socket will be upgraded midway. How do I go about doing this on node.js > 0.4.0?
starttls on node.js > 0.4.0
1.2k Views Asked by dhruvbird At
2
There are 2 best solutions below
0
BMiner
On
Take a close look at the lib/tls.js file in the Node Github repo.
https://github.com/joyent/node/blob/master/lib/tls.js#L949-992
Another resource that you really might like is here:
Related Questions in NODE.JS
- Using Puppeteer to scrape a public API only when the data changes
- How to request administrator rights?
- How do I link two models in mongoose?
- Variable inside a Variable, not updating
- Unable to Post Form Data to MongoDB because of picturepath
- Connection terminated unexpectedly while performing multi row insert using pg-promise
- Processing multiple forms in nodejs and postgresql
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How to change the Font Weight of a SelectValue component in React when a SelectItem is selected?
- My unban and ban commands arent showing when i put the slash
- how to make read only file/directory in Mac writable
- How can I outsource worker processes within a for loop?
- Get remote MKV file metadata using nodejs
- Adding google-profanity-words to web page
- Products aren't displayed after fetching data from mysql db (node.js & express)
Related Questions in XMPP
- How to Implement Chatbot at Scale
- How to connect Openfire with Kotlin
- Having trouble with node.js client joining a XMPP Prosody room
- Connecting to Openfire server from browser using xmpp.js
- Flutter xmpp_plugin - App crashes when open the app again
- XMPP - Openfire Subgroup
- Does the XMPP receipy still work in Franz
- Unable to retrieving chat history using Strophe.js and Ejabberd with XEP-0313: Message Archive Management (MAM)
- Integrate XMPP Openfire STUN server with client side js web application
- How to define a shaper in ejabberd for websocket connections?
- Accessing Content in XMPP PubSub Event Using pubsub:published Event (StanzaJS)
- Can xmpp server admin influence usage of omemo?
- is there anyone help me about this p2 ejabberd error?
- ejbberd : How to make IQ Handler parallel?
- Setup Ejabbered on a VPS
Related Questions in SSL
- Django's previous settings prevent connecting to localhost
- SSL error when redirecting from one lightsail subdomain to lightsail subdomain on different account
- HTTP Requests from SSL Secured(HTTPS) Domain Failing
- Reversed TLS re-connection issue
- Nginx configuration file and SSL certificate errors in Docker
- IBM DB2 console doesn't work after SSL certificate update
- mTLS not working with FastAPI and Uvicorn
- WSO2 change localhost - ERR_CERT_AUTHORITY_INVALID
- KeyCloak Handshake causing timeout
- Python SSL Error , Server side - Client certificate verify failing with Intermediate cert - self-signed certificate in certificate chain (_ssl.c:1007)
- Apps migrated from IIS server1 to another IIS server2 stopped communicating with an App on IIS server 1 via SSL (HTTPS)
- Let Artifactory use HTTPS settings
- Even though I added my SSL certificate, I get the "not secure" error
- CST 0001 ERRO [comm.tls] ClientHandshake -> Client TLS handshake failed after 173.725µs with error EOF remoteaddress=127.0.0.1:7051
- ERR_SSL_PROTOCOL_ERROR generated using X509 certificate with Kestrel hosting in .NET 8 on Linux
Related Questions in NODE-XMPP
- Having trouble with node.js client joining a XMPP Prosody room
- How to handle authentication with xmpp when using external authentication provider
- Error: self-signed certificate When connecting to google FCM with XMPP protocol
- How to configure a xmpp pubsub leafnode so that anyone can publish or update item there?
- Unable to get socket event in ReactJS from XMPP Strophe
- xmpp client authorization jwt tokens
- NodeJS XMPP over WebSocket server
- No stream features to proceed using node-xmpp-client
- How can I create multiple independent conversations between two users in XMPP Server?
- Using XMPP Client inside docker container
- Electron + xmpp.js: How I can Debug SSL Self-signed error messages?
- How to use stream management acks in xmpp.js (in react-native) with MongooseIM (as chat server)?
- Create Multiple Jabber Client Echo Bot
- node-xmpp-server vs node-xmpp-client
- Xmpp library for Typescript
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Try this: https://gist.github.com/848444