You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
consthttps=require('https');constocsp=require('ocsp');// Create cache for OCSP (it'll be used to respond to OCSP stapling requests)varcache=newocsp.Cache();// Create your HTTPS servervarserver=https.createServer({cert: cert,// Your certkey: key// Your private key},function(req,res){res.end('hello world');// Your request handling and response});/* * This block below responds to OCSP sapling requests * 1. It gets OCSP URI for your certificate * 2. Checks if there is a valid cached response * 3. Sends cached response OR queries OCSP server (using OCSP URI) to get a response */server.on('OCSPRequest',function(cert,issuer,cb){ocsp.getOCSPURI(cert,function(err,uri){if(err)returncb(err);if(uri===null)returncb();varreq=ocsp.request.generate(cert,issuer);cache.probe(req.id,function(err,cached){if(err)returncb(err);if(cached!==false)returncb(null,cached.response);varoptions={url: uri,ocsp: req.data};cache.request(req.id,options,cb);});});});
Sorry, noob here. I made a test on ssllabs.com and this says "OCSP stapling No"
What do i need to make it pass? Cache? Server? I don't fully understand what ssllabs tests here
The text was updated successfully, but these errors were encountered: