Skip to content

use headless mode to goto https url, return ERR_BAD_SSL_CLIENT_AUTH_CERT #2685

@hw64220

Description

@hw64220

Describe the bug
I AM not sure whether its a bug. I knew it works ok if I use a public website such as google for testing .
So, the key problem should be we are using the self-signed certification, any suggestion or guide on such situation?

To Reproduce
Steps (or script) to reproduce the behavior:
1.we make the certification by ourselves(server and client).
2.the certification is self-signed and trusted by browser
3.user below scripts to run with headless mode, will return such error

openBrowser({headless: true,ignoreCertificatieErrors:true})
[PASS] Browser opened
goto("https://service.cffex.com.cn:8443/ecms-frontend-ext/")
[FAIL] Error: Navigation to url https://service.cffex.com.cn:8443/ecms-frontend-
ext/ failed. REASON: net::ERR_BAD_SSL_CLIENT_AUTH_CERT, run .trace for more in
fo.


**Logs**
> .trace
'Error: Navigation to url https://service.cffex.com.cn:8443/ecms-frontend-ext/ f
ailed. REASON: net::ERR_BAD_SSL_CLIENT_AUTH_CERT
' +
  '    at Object.handleNavigation (C:\\Users\\Administrator\\AppData\\Roaming\
pm\
ode_modules\\taiko\\lib\\handlers\\pageHandler.js:193:13)
' +
  '    at async C:\\Users\\Administrator\\AppData\\Roaming\
pm\
ode_modules\\taiko\\lib\\taiko.js:745:16
' +
  '    at async doActionAwaitingNavigation (C:\\Users\\Administrator\\AppData\\R
oaming\
pm\
ode_modules\\taiko\\lib\\doActionAwaitingNavigation.js:61:5)
' +
  '    at async module.exports.goto (C:\\Users\\Administrator\\AppData\\Roaming\

pm\
ode_modules\\taiko\\lib\\taiko.js:744:3)
' +
  '    at async module.exports.<computed> (C:\\Users\\Administrator\\AppData\\Ro
aming\
pm\
ode_modules\\taiko\\lib\\taiko.js:2620:14)
' +
  '    at async repl.context.<computed> (C:\\Users\\Administrator\\AppData\\Roam
ing\
pm\
ode_modules\\taiko\\lib\\repl\\repl.js:271:23)
' +
  '    at async C:\\Users\\Administrator\\AppData\\Roaming\
pm\
ode_modules\\taiko\\lib\\repl\\awaitEval.js:54:17'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions