0.1.2 • Published 11 years ago

tls-cert-update v0.1.2

Weekly downloads
3
License
-
Repository
github
Last release
11 years ago

TLS Cert Update

Reads files used by tls from disk or http and updates them when they expires.

This is done by using the SNICallback in tls.

For local files fs.watch is used and for remote http files we look at the http cache headers. Look at file-expires for details.

Usage

var tcu = require('tls-cert-update')
  , tls = require('tls')

tcu ( { key: '/path/to/key',
      , cert: '/path/to/cert',
      , ca: [ 'http://ca.example.com/my-root-ca.crt'
            , 'http://ca.example.com/my-other-ca.crt'
            ]
      , crl:[ 'http://ca.example.com/my-root-ca.crl'
            , 'http://ca.example.com/my-other-ca.crl'
            ]
      }
    , function(err, options) {
        if (err) throw err

        tls.createServer(options, function(socket) {
          socket.pipe(socket)
        })
      }
    )

Install

npm install tls-cert-update

Licence

MIT

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago