Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

secureOptions SSL_OP_NO_TICKET causes 0.12 SSL server to hang #25736

Closed
tlivings opened this issue Jul 18, 2015 · 2 comments
Closed

secureOptions SSL_OP_NO_TICKET causes 0.12 SSL server to hang #25736

tlivings opened this issue Jul 18, 2015 · 2 comments

Comments

@tlivings
Copy link

Using the SSL_OP_NO_TICKET will not allow server to complete handshake.

Example:

var Https = require('https');
var Fs = require('fs');
var C = require('constants');

var server = Https.createServer({
    secureOptions: C.SSL_OP_NO_TICKET,
    cert: Fs.readFileSync('/usr/local/ssl/server.crt'),
    key: Fs.readFileSync('/usr/local/ssl/server.key')
}, function (req, res) {
    res.writeHead(200);
    res.end("hello world\n");
});

server.on('resumeSession', function (id, callback) {
    console.log('resume requested');
    callback();
});

server.listen(8000);
@tlivings
Copy link
Author

cc @indutny

@indutny
Copy link
Member

indutny commented Jul 18, 2015

It is actually a manifestation of #25735. Works like a charm in io.js

@indutny indutny closed this as completed Jul 18, 2015
indutny added a commit to indutny/node that referenced this issue Jul 18, 2015
indutny added a commit to indutny/node that referenced this issue Jul 18, 2015
indutny added a commit to indutny/node that referenced this issue Jul 20, 2015
indutny added a commit that referenced this issue Jul 20, 2015
See: #25736

Reviewed-By: Fedor Indutny <fedor@indutny.com>
PR-URL: #25739
jBarz pushed a commit to ibmruntimes/node that referenced this issue Nov 4, 2016
See: nodejs#25736

Reviewed-By: Fedor Indutny <fedor@indutny.com>
PR-URL: nodejs#25739
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants