https://github.com/fijimunkii/node-tls-session-cache
Enable TLS Session resumption (caching) on your Node server
https://github.com/fijimunkii/node-tls-session-cache
cache https node session tls tls-session tls-session-cache
Last synced: 4 months ago
JSON representation
Enable TLS Session resumption (caching) on your Node server
- Host: GitHub
- URL: https://github.com/fijimunkii/node-tls-session-cache
- Owner: fijimunkii
- License: isc
- Created: 2019-03-27T16:03:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-19T16:58:56.000Z (about 6 years ago)
- Last Synced: 2024-11-12T02:34:52.477Z (6 months ago)
- Topics: cache, https, node, session, tls, tls-session, tls-session-cache
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# node-tls-session-cache
Enable TLS Session resumption (caching) on your Node server[](https://opensource.org/licenses/ISC)
This will allow a regular node https or tls server to resume tls sessions using caching
There are two methods for tls session resumption. Node has *tickets* ready out of the box. The other, which you may be failing on your [Qualys SSL Report](https://www.ssllabs.com/ssltest/analyze.html), is *caching*.
Just pass in your server to get running:
```js
const server = require('https').createServer(httpsConfig, (req,res) => res.end('OK'));
server.listen(443);require('tls-session-cache')(server);
```Server can be https, tls
All available options:
```js
require('tls-session-cache')(server, {
maxCachedSessions = 555 // number of sessions to hold in lru cache (default 100)
});
```## Authors
fijimunkii
## License
This project is licensed under the ISC License - see the [LICENSE](LICENSE.txt) file for details.