|
@ -10,15 +10,15 @@ let cert; |
|
|
let caRootKey; |
|
|
let caRootKey; |
|
|
let caRootCert; |
|
|
let caRootCert; |
|
|
|
|
|
|
|
|
let pemify = pify.all(pem); |
|
|
const pemP = pify(pem); |
|
|
|
|
|
|
|
|
test.before('setup', async t => { |
|
|
test.before('setup', async t => { |
|
|
const caKeys = await pemify.createCertificate({days: 1, selfSigned: true}); |
|
|
const caKeys = await pemP.createCertificate({days: 1, selfSigned: true}); |
|
|
|
|
|
|
|
|
caRootKey = caKeys.serviceKey; |
|
|
caRootKey = caKeys.serviceKey; |
|
|
caRootCert = caKeys.certificate; |
|
|
caRootCert = caKeys.certificate; |
|
|
|
|
|
|
|
|
const keys = await pemify.createCertificate({ |
|
|
const keys = await pemP.createCertificate({ |
|
|
serviceCertificate: caRootCert, |
|
|
serviceCertificate: caRootCert, |
|
|
serviceKey: caRootKey, |
|
|
serviceKey: caRootKey, |
|
|
serial: Date.now(), |
|
|
serial: Date.now(), |
|
|