2
0
mirror of https://github.com/therootcompany/greenlock.js.git synced 2025-03-06 08:40:41 +00:00
greenlock.js/tests/cert-info.js
2016-08-09 14:43:13 -04:00

28 lines
552 B
JavaScript

'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('');
var json = certInfo.testBasicCertInfo();
console.log('');
console.log(JSON.stringify(json, null, ' '));
console.log('');
console.info('');
console.info('If we got values at all, it must have passed.');
console.info('');