npm

Need private packages and team management tools?Check out npm Orgs. »

tls-session-cache

1.0.2 • Public • Published

node-tls-session-cache

Enable TLS Session resumption (caching) on your Node server

License: 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, is caching.

Just pass in your server to get running:

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:

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 file for details.

install

npm i tls-session-cache

Downloadsweekly downloads

3

version

1.0.2

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability