|
|
@ -5,9 +5,6 @@ import got from '../'; |
|
|
|
import {createSSLServer} from './helpers/server'; |
|
|
|
|
|
|
|
let s; |
|
|
|
let key; |
|
|
|
let cert; |
|
|
|
let caRootKey; |
|
|
|
let caRootCert; |
|
|
|
|
|
|
|
const pemP = pify(pem, Promise); |
|
|
@ -15,7 +12,7 @@ const pemP = pify(pem, Promise); |
|
|
|
test.before('setup', async () => { |
|
|
|
const caKeys = await pemP.createCertificate({days: 1, selfSigned: true}); |
|
|
|
|
|
|
|
caRootKey = caKeys.serviceKey; |
|
|
|
const caRootKey = caKeys.serviceKey; |
|
|
|
caRootCert = caKeys.certificate; |
|
|
|
|
|
|
|
const keys = await pemP.createCertificate({ |
|
|
@ -31,8 +28,8 @@ test.before('setup', async () => { |
|
|
|
commonName: 'sindresorhus.com' |
|
|
|
}); |
|
|
|
|
|
|
|
key = keys.clientKey; |
|
|
|
cert = keys.certificate; |
|
|
|
const key = keys.clientKey; |
|
|
|
const cert = keys.certificate; |
|
|
|
|
|
|
|
s = await createSSLServer({key, cert}); |
|
|
|
|
|
|
|