greenlock.js/tests/cert-info.js

28 lines
552 B
JavaScript
Raw Normal View History

2016-08-09 00:01:22 +00:00
'use strict';
var certInfo = require('../lib/cert-info.js');
var c = certInfo.testGetCertInfo();
console.info('');
console.info(c.notBefore.value);
console.info(new Date(c.notBefore.value).valueOf());
console.info('');
console.info(c.notAfter.value);
console.info(new Date(c.notAfter.value).valueOf());
console.info('');
2016-08-09 18:43:13 +00:00
var json = certInfo.testBasicCertInfo();
console.log('');
console.log(JSON.stringify(json, null, ' '));
console.log('');
2016-08-09 00:01:22 +00:00
console.info('');
console.info('If we got values at all, it must have passed.');
console.info('');