1
0
Fork 0
forked from svrjs/svrjs
This repository has been archived on 2024-11-10. You can view files and clone it, but cannot push or open issues or pull requests.
svrjs/node_modules/ocsp/test/agent-test.js

35 lines
658 B
JavaScript
Raw Permalink Normal View History

2023-07-29 20:33:28 +02:00
var ocsp = require('../');
var fixtures = require('./fixtures');
var assert = require('assert');
var https = require('https');
describe('OCSP Agent', function() {
var a;
beforeEach(function() {
a = new ocsp.Agent();
});
var websites = [
'www.google.com',
'google.com',
'helloworld.letsencrypt.org',
'yahoo.com',
'nytimes.com',
'microsoft.com'
];
websites.forEach(function(host) {
it('should connect and validate ' + host, function(cb) {
var req = https.get({
host: host,
port: 443,
agent: a
}, function(res) {
res.resume();
cb();
});
});
});
});