Assert certs further up the chain
This commit is contained in:
parent
095d711848
commit
fc1ce3eeab
1 changed files with 4 additions and 0 deletions
|
@ -556,7 +556,11 @@ describe('session module', function () {
|
|||
assert.equal(certificate.subjectName, 'localhost')
|
||||
assert.equal(certificate.issuer.commonName, 'Intermediate CA')
|
||||
assert.equal(certificate.subject.commonName, 'localhost')
|
||||
assert.equal(certificate.issuerCert.issuer.commonName, 'Root CA')
|
||||
assert.equal(certificate.issuerCert.subject.commonName, 'Intermediate CA')
|
||||
assert.equal(certificate.issuerCert.issuerCert.issuer.commonName, 'Root CA')
|
||||
assert.equal(certificate.issuerCert.issuerCert.subject.commonName, 'Root CA')
|
||||
assert.equal(certificate.issuerCert.issuerCert.issuerCert, undefined)
|
||||
callback(false)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue