Co-authored-by: Michal TOMA <michaltoma2205@gmail.com> Co-authored-by: Alex Rudenko <alexrudenko@chromium.org> Fixes #5625. Closes #5628.
This commit is contained in:
parent
e8232890a4
commit
a17bd89fb9
@ -311,6 +311,7 @@
|
||||
- [class: SecurityDetails](#class-securitydetails)
|
||||
* [securityDetails.issuer()](#securitydetailsissuer)
|
||||
* [securityDetails.protocol()](#securitydetailsprotocol)
|
||||
* [securityDetails.subjectAlternativeNames()](#securitydetailssubjectalternativenames)
|
||||
* [securityDetails.subjectName()](#securitydetailssubjectname)
|
||||
* [securityDetails.validFrom()](#securitydetailsvalidfrom)
|
||||
* [securityDetails.validTo()](#securitydetailsvalidto)
|
||||
@ -3729,6 +3730,9 @@ Contains the URL of the response.
|
||||
#### securityDetails.protocol()
|
||||
- returns: <[string]> String with the security protocol, eg. "TLS 1.2".
|
||||
|
||||
#### securityDetails.subjectAlternativeNames()
|
||||
- returns: <[Array]<[string]>> Returns the list of SANs (subject alternative names) of the certificate.
|
||||
|
||||
#### securityDetails.subjectName()
|
||||
- returns: <[string]> Name of the subject to which the certificate was issued to.
|
||||
|
||||
|
@ -20,6 +20,7 @@ export class SecurityDetails {
|
||||
private _validFrom: number;
|
||||
private _validTo: number;
|
||||
private _protocol: string;
|
||||
private _sanList: string[];
|
||||
|
||||
constructor(securityPayload: Protocol.Network.SecurityDetails) {
|
||||
this._subjectName = securityPayload.subjectName;
|
||||
@ -27,6 +28,7 @@ export class SecurityDetails {
|
||||
this._validFrom = securityPayload.validFrom;
|
||||
this._validTo = securityPayload.validTo;
|
||||
this._protocol = securityPayload.protocol;
|
||||
this._sanList = securityPayload.sanList;
|
||||
}
|
||||
|
||||
subjectName(): string {
|
||||
@ -48,4 +50,8 @@ export class SecurityDetails {
|
||||
protocol(): string {
|
||||
return this._protocol;
|
||||
}
|
||||
|
||||
subjectAlternativeNames(): string[] {
|
||||
return this._sanList;
|
||||
}
|
||||
}
|
||||
|
@ -64,8 +64,12 @@ describeFailsFirefox('ignoreHTTPSErrors', function () {
|
||||
const protocol = serverRequest.socket.getProtocol().replace('v', ' ');
|
||||
expect(securityDetails.protocol()).toBe(protocol);
|
||||
expect(securityDetails.subjectName()).toBe('puppeteer-tests');
|
||||
expect(securityDetails.validFrom()).toBe(1550084863);
|
||||
expect(securityDetails.validTo()).toBe(33086084863);
|
||||
expect(securityDetails.validFrom()).toBe(1589357069);
|
||||
expect(securityDetails.validTo()).toBe(1904717069);
|
||||
expect(securityDetails.subjectAlternativeNames()).toEqual([
|
||||
'www.puppeteer-tests.test',
|
||||
'www.puppeteer-tests-1.test',
|
||||
]);
|
||||
});
|
||||
it('should be |null| for non-secure requests', async () => {
|
||||
const { server } = getTestState();
|
||||
|
@ -1,28 +1,20 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIEsjCCApoCCQCIPLvQDgoZojANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA9w
|
||||
dXBwZXRlZXItdGVzdHMwIBcNMTkwMjEzMTkwNzQzWhgPMzAxODA2MTYxOTA3NDNa
|
||||
MBoxGDAWBgNVBAMMD3B1cHBldGVlci10ZXN0czCCAiIwDQYJKoZIhvcNAQEBBQAD
|
||||
ggIPADCCAgoCggIBAJue1yqA4qn0SJR3rgTd6sCYVHMKqUouD0No09H7qf+5ZaIb
|
||||
3yGpC5J9Bsf/ZbvD5xpgqbGEYkHj7Qh6Z/cPCSHA+ZpsUzDXVrLFXrdwwiK1FrIS
|
||||
rDI2RYsiP+e52XPC/acWC/7f+E54C62oMjYojaVaDn8gu06gyS1rXK2JITQ6CrKn
|
||||
b+PVSkjtPB4ku245u1qCKoblkNEZSkEmw8Csl+gw6ydGqOSQAoo8rsDte5zCMnPX
|
||||
7XzL6EhRqpiVx7PCuQWnXhL7j9N214Pit7s7F8TeAA6yZR9oswW+h0dWO+XwocJ1
|
||||
rwkODXOngbCqO+GUxyuavIl2m0d2MP8n6Wa9RVqYetmPQzafKkR5hjiV4mgCFqNQ
|
||||
bHMTjI6udcR+h5pYoWKxN9/gJaWwyAAzck0AiMeGVrvKR3JKACqlTMzy/Y30obRF
|
||||
dddURoFf2wjKJvuTK9hHI7pwM5tlPEwu9bTCWNA6XXs2Bq1f6N2OAKhpKOcihNem
|
||||
aeGUPmygLPb66z9JO75yZXM+1yk1ScXaNHWZLmluVpEPk7maWULpSpxPAlaN3PmK
|
||||
8lEihgfBBovampxZo8SvPEt+g5jGyPq9weNg8ic8476PuRVQdg7D8spVxl6whDlJ
|
||||
bcFojzgrX70t13jqZOtla4WK1vRnZAGplfoH0i5WvAVw+i5S/OVzsmNDtGFbAgMB
|
||||
AAEwDQYJKoZIhvcNAQELBQADggIBADUAjA/dH+b5UxDC5SL98w1hphw9PvD1cuGS
|
||||
sVnKPM236JoTiO3KVfm3NMBfSoBi1hPNkXzqr/R4xbyje4Kc4oYcdjGtpll3T5da
|
||||
wkx1+qumx6O2mEaOshxh76dfZfZne6SQphQKHw8PD10CfDb/NMnmdEbiOSENSqS4
|
||||
jGELuGviUl361oCBU45UEN7lfs7ANAhwSZyEO7deroyGdvsxfQUaqQrEQsG30jn3
|
||||
t0cCamYU6eK3bNR/yNXJrZFv3dzoquRY9H52YtVElRqdAIsNlnbxbqz0cm5xFKFt
|
||||
YTIrMSO1EvDTbB0PPwC5FJvONHhjwiWzgVXSnZrcs/05TsWWnSHH92S+wGCIBC+0
|
||||
6fcSKnjdBn9ks5TrDX0TRY6N890KyDQWxPRhHYrMVpn833WY8y/SguxqiMgLFgMD
|
||||
WLy6yZzJloW7NgpLGAfMA0nMG1O92hfKmQw82Pyf3SVXGTDiXiEOXn0vN6bsPaV/
|
||||
3Ws2LJQECnVfHj3TsuxdtwcO+VGcFCarMOqlhE6IlQzfK8ykYdP6wCkVgXEtiVCR
|
||||
T1OWUWCFowoFpwBFLf1lA065qsAymddnkrUEOMiScZ/3OZhmd+FvgQ+O0iYuqpeI
|
||||
xauiQ68+Jb4KjVWnu5QBVq8n1vUJ5+gAzowNMN9G+1+A282Ox23T48dce22B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eIP
|
||||
V+BMEZWeaSDC2PREkG7GOezmE1/WDUCYaorPw2whdCA5wJvTW3zXpJjYhfsld+5z
|
||||
KuErx4OCxRJij73/BD9SpLxDEY1cdl819F1IvxsRGhmTIaSly2hQLrhOgo1jgZtV
|
||||
FGCa6DSlXnQGLaV+N+ssR0lkCksNrNBVDfA1bP5bT/4VCcwUWwm9TUeF0Qo=
|
||||
-----END CERTIFICATE-----
|
||||
|
@ -1,52 +1,28 @@
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
MIIJQwIBADANBgkqhkiG9w0BAQEFAASCCS0wggkpAgEAAoICAQCbntcqgOKp9EiU
|
||||
d64E3erAmFRzCqlKLg9DaNPR+6n/uWWiG98hqQuSfQbH/2W7w+caYKmxhGJB4+0I
|
||||
emf3DwkhwPmabFMw11ayxV63cMIitRayEqwyNkWLIj/nudlzwv2nFgv+3/hOeAut
|
||||
qDI2KI2lWg5/ILtOoMkta1ytiSE0Ogqyp2/j1UpI7TweJLtuObtagiqG5ZDRGUpB
|
||||
JsPArJfoMOsnRqjkkAKKPK7A7XucwjJz1+18y+hIUaqYlcezwrkFp14S+4/TdteD
|
||||
4re7OxfE3gAOsmUfaLMFvodHVjvl8KHCda8JDg1zp4GwqjvhlMcrmryJdptHdjD/
|
||||
J+lmvUVamHrZj0M2nypEeYY4leJoAhajUGxzE4yOrnXEfoeaWKFisTff4CWlsMgA
|
||||
M3JNAIjHhla7ykdySgAqpUzM8v2N9KG0RXXXVEaBX9sIyib7kyvYRyO6cDObZTxM
|
||||
LvW0wljQOl17NgatX+jdjgCoaSjnIoTXpmnhlD5soCz2+us/STu+cmVzPtcpNUnF
|
||||
2jR1mS5pblaRD5O5mllC6UqcTwJWjdz5ivJRIoYHwQaL2pqcWaPErzxLfoOYxsj6
|
||||
vcHjYPInPOO+j7kVUHYOw/LKVcZesIQ5SW3BaI84K1+9Ldd46mTrZWuFitb0Z2QB
|
||||
qZX6B9IuVrwFcPouUvzlc7JjQ7RhWwIDAQABAo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||
Dz9pi55tUUWc61w6ovd+iliawvXeGi4wibtTH4iGj/C2sJIaMmOD99NQ7Oi/x89D
|
||||
oMgSUemkoFL8FGsZGyZ7szqxyON1jP42Bm2MQrW5kIf7Y4yaIGhoak5JNxn2JUyV
|
||||
gupVbY1mQ1GTPByxHeLh1w==
|
||||
-----END PRIVATE KEY-----
|
||||
|
Loading…
Reference in New Issue
Block a user